(0.4ms) SET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) select table_name from information_schema.views where table_schema = 'fe_test'  (44.1ms) TRUNCATE TABLE `fe_addresses`  (11.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_answers`  (10.2ms) TRUNCATE TABLE `fe_applications`  (12.6ms) TRUNCATE TABLE `fe_conditions`  (13.3ms) TRUNCATE TABLE `fe_elements`  (8.8ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (8.8ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (8.8ms) TRUNCATE TABLE `fe_question_sheets`  (11.6ms) TRUNCATE TABLE `fe_references`  (8.5ms) TRUNCATE TABLE `fe_users`  (8.6ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (20.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-08-14 19:53:45', '2023-08-14 19:53:45')  (6.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:45.802217' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 1) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 1', 1, '2023-08-14 19:53:45', '2023-08-14 19:53:45')  (11.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:45.820748' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 2) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 2', 2, '2023-08-14 19:53:45', '2023-08-14 19:53:45')  (11.0ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:45.837994' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 3) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 3', 3, '2023-08-14 19:53:45', '2023-08-14 19:53:45')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:45.843993' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 4) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 4', 4, '2023-08-14 19:53:45', '2023-08-14 19:53:45')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:45.848260' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 5) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 5', 5, '2023-08-14 19:53:45', '2023-08-14 19:53:45')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (1.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 1', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (12.1ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 2', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.8ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.164537' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 6) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 6', 6, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.167644' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 7) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 7', 7, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.170562' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 8) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 8', 8, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.173595' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 9) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 9', 9, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.176662' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 10) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 10', 10, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.313114' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 11) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 11', 11, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.319339' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 12) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 12', 12, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.322886' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 13) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 13', 13, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.326093' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 14) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 14', 14, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.329245' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 15) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 15', 15, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 3', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 4', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.389424' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 16) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 16', 16, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.392793' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 17) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 17', 17, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.395812' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 18) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 18', 18, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.398873' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 19', 19, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.401889' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 20) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 20', 20, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (14.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (8.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.547138' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 21) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 21', 21, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.551227' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 22) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 22', 22, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.554309' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 23) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 23', 23, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.557449' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 24', 24, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.560488' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 25) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 25', 25, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 5', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 6', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.621229' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 26) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 26', 26, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.624508' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 27) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 27', 27, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.627812' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 28) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 28', 28, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.630838' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 29) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 29', 29, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.633684' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 30) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 30', 30, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.772174' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 31) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 31', 31, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.776767' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 32) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 32', 32, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.779987' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 33) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 33', 33, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.783206' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 34) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 34', 34, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.786499' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 35) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 35', 35, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 7', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 8', TRUE, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.849121' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 36) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 36', 36, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.852234' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 37) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 37', 37, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.855257' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 38) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 38', 38, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.858355' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 39) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 39', 39, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.861372' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 40) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 40', 40, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.6ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:46.999984' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 41) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 41', 41, '2023-08-14 19:53:46', '2023-08-14 19:53:46')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.004506' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 42) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 42', 42, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.007753' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 43) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 43', 43, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.010652' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 44) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 44', 44, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.013838' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 45) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 45', 45, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 9', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 10', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.069062' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 46) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 46', 46, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.072393' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 47) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 47', 47, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.075474' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 48) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 48', 48, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.078408' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 49) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 49', 49, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.081570' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 50) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 50', 50, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.089336' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 51) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 51', 51, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.092506' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 52) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 52', 52, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.095575' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 53) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 53', 53, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.098685' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 54) Fe::Page Create (0.6ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 54', 54, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.103836' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 55) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 55', 55, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47', 3) Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (1.2ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 12  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.8ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.4ms) COMMIT Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.8ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.7ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.5ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (9.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.703304' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 56) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 56', 56, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.707429' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 57) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 57', 57, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.710954' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 58) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 58', 58, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.714416' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 59) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 59', 59, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.717667' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 60) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 60', 60, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 11', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 12', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:47' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.4ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.786504' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 61) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 61', 61, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.789940' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 62) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 62', 62, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.793398' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 63) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 63', 63, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.796502' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 64) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 64', 64, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.799634' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 65) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 65', 65, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.807865' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 66) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 66', 66, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.810982' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 67) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 67', 67, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.814062' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 68) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 68', 68, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.817203' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 69) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 69', 69, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:47.820292' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 70) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 70', 70, '2023-08-14 19:53:47', '2023-08-14 19:53:47')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::QuestionGridWithTotal Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-14 19:53:47', '2023-08-14 19:53:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:47' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 12  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.4ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.4ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.2ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.4ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (1.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (46.5ms) TRUNCATE TABLE `fe_people`  (9.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.289355' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 71) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 71', 71, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.293504' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 72) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 72', 72, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.297111' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 73) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 73', 73, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.300162' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 74) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 74', 74, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.303420' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 75) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 75', 75, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 13', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 14', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.364372' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 76) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 76', 76, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.367523' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 77) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 77', 77, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.370651' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 78) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 78', 78, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.373820' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 79) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 79', 79, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.377050' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 80) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 80', 80, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.385168' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 81) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 81', 81, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.388329' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 82) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 82', 82, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.391274' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 83) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 83', 83, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.394501' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 84) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 84', 84, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.397693' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 85) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 85', 85, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 11  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 12  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.4ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.808670' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 86) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 86', 86, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.812872' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 87) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 87', 87, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.815962' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 88) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 88', 88, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.819137' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 89) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 89', 89, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.822284' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 90) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 90', 90, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 15', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 16', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.880277' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 91) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 91', 91, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.883577' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 92) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 92', 92, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.886907' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 93) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 93', 93, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.889860' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 94) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 94', 94, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:48.892803' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 95) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 95', 95, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:48', '2023-08-14 19:53:48')  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 17', TRUE, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (29.3ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:53:48', '2023-08-14 19:53:48') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:48' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:48' WHERE `fe_pages`.`id` = 1  (9.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (38.4ms) TRUNCATE TABLE `fe_addresses`  (11.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (26.4ms) TRUNCATE TABLE `fe_applications`  (13.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (45.5ms) TRUNCATE TABLE `fe_users`  (11.3ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.208041' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 96) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 96', 96, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.212447' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 97) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 97', 97, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.215657' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 98) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 98', 98, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.218648' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 99) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 99', 99, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.221512' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 100) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 100', 100, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 18', TRUE, '2023-08-14 19:53:49', '2023-08-14 19:53:49') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:49' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:49', '2023-08-14 19:53:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:49' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:49' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 19', TRUE, '2023-08-14 19:53:49', '2023-08-14 19:53:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:49', '2023-08-14 19:53:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:49' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (3.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.285595' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 101) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 101', 101, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.288953' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 102) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 102', 102, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.292150' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 103) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 103', 103, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.295175' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 104) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 104', 104, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:49.298074' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 105) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 105', 105, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:49', '2023-08-14 19:53:49')  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (36.1ms) TRUNCATE TABLE `fe_addresses`  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (12.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Paragraph Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'abc', '2023-08-14 19:53:49', '2023-08-14 19:53:49') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Paragraph Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'Lorem ipsum...', '2023-08-14 19:53:49', '2023-08-14 19:53:49') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (9.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-08-14 19:53:50', '2023-08-14 19:53:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:50.808460' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 106) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 106', 106, '2023-08-14 19:53:50', '2023-08-14 19:53:50')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Create (4.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 20', TRUE, '2023-08-14 19:53:50', '2023-08-14 19:53:50') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:50', '2023-08-14 19:53:50') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:50' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 21', TRUE, '2023-08-14 19:53:50', '2023-08-14 19:53:50') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 22', TRUE, '2023-08-14 19:53:50', '2023-08-14 19:53:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.2ms) COMMIT  (0.5ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-14 19:53:50', '2023-08-14 19:53:50') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 23', TRUE, '2023-08-14 19:53:50', '2023-08-14 19:53:50') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.2ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.070374' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 107) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 107', 107, '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 24', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 25', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 26', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 27', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.143900' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 108) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 108', 108, '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 28', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 5, 1, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::TextField', 'short', 'Label Element 29', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::Section', 'section', 'Label Element 30', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 31', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 8, 2, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (43.7ms) TRUNCATE TABLE `fe_conditions`  (13.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (11.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.382849' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 109) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 109', 109, '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 109) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.388883' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 109) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (2.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.529573' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 110) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (2, 'Label Page 110', 110, '2023-08-14 19:53:51', '2023-08-14 19:53:51', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.536023' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 111) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (3, 'Label Page 111', 111, '2023-08-14 19:53:51', '2023-08-14 19:53:51', '')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 32', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 110) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.563123' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 110) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 111) AND (`fe_pages`.id != 2) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.566892' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 2) AND (`fe_pages`.`number` >= 111) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.701539' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 112) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 112', 112, '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 33', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 34', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 35', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 36', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.902369' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 113) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 113', 113, '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 37', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 38', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:51.945771' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 114) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 114', 114, '2023-08-14 19:53:51', '2023-08-14 19:53:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 39', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 3, 1, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 40', TRUE, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 4, 2, '2023-08-14 19:53:51', '2023-08-14 19:53:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:51' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (11.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin (23.9ms) Completed 200 OK in 1141ms (Views: 1122.6ms | ActiveRecord: 4.9ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (32.5ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (9.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (8.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"content"=>"Content", "name"=>"Name", "subject"=>"Subject"}}  (0.2ms) BEGIN Fe::EmailTemplate Create (0.4ms) INSERT INTO `fe_email_templates` (`name`, `content`, `subject`, `created_at`, `updated_at`) VALUES ('Name', 'Content', 'Subject', '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (11.8ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 16ms (ActiveRecord: 12.3ms)  (1.2ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.5ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.7ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin (2.0ms) Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.6ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:53.786944' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 115) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 115', 115, '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:53.791942' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 116) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 116', 116, TRUE, '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.5ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:53.940460' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 117) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 117', 117, '2023-08-14 19:53:53', '2023-08-14 19:53:53')  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 41', TRUE, '2023-08-14 19:53:53', '2023-08-14 19:53:53') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:53', '2023-08-14 19:53:53') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:53' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceSheet Create (0.7ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_1', 'fn_1', 'ln_1', 'phone_1', 'email_1@email.com', 'created', '2023-08-14 19:53:54', '2023-08-14 19:53:54') Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-14 19:53:54' WHERE `fe_references`.`id` = 1  (6.4ms) COMMIT  (0.3ms) BEGIN Fe::EmailTemplate Create (2.1ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (0.4ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"email"=>"email@email.com", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "relationship"=>"rel", "title"=>"title"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ad26df1c5f3f49fdbe1aa646d7884e8f' LIMIT 1 Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = 'ad26df1c5f3f49fdbe1aa646d7884e8f' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 308.1ms Sent mail to email@email.com (15.9ms) Date: Mon, 14 Aug 2023 15:53:54 -0400 From: info@example.com To: email@email.com Message-ID: <64da86525ecae_1636f3fd110040ea422676@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.3ms Sent mail to email@email.com (1.7ms) Date: Mon, 14 Aug 2023 15:53:54 -0400 From: info@example.com To: email@email.com Message-ID: <64da865261076_1636f3fd110040ea4227d4@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = '2023-08-14 19:53:54' WHERE `fe_references`.`id` = 1  (21.4ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (1.5ms) Completed 200 OK in 510ms (Views: 78.3ms | ActiveRecord: 25.5ms) Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.2ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Application Create (0.6ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:54', '2023-08-14 19:53:54') Fe::AnswerSheetQuestionSheet Create (0.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.5ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 12ms (ActiveRecord: 2.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:54', '2023-08-14 19:53:54')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (4.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (1.1ms) Completed 200 OK in 31ms (Views: 25.0ms | ActiveRecord: 1.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.7ms) TRUNCATE TABLE `fe_addresses`  (9.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:55.098733' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 118) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 118', 118, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.0ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Element Load (1.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb [1 times] (2.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (9.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (1.2ms)  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (10.7ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGridWithTotal') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_submit_to.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (54.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 83ms (Views: 60.3ms | ActiveRecord: 8.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (30.6ms) TRUNCATE TABLE `fe_addresses`  (10.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Rendering html template within layouts/fe/application Rendered html template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 10.6ms | ActiveRecord: 2.0ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.4ms) TRUNCATE TABLE `fe_addresses`  (10.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (8.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Redirected to http://test.host/referrer Completed 302 Found in 5ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (35.9ms) TRUNCATE TABLE `fe_addresses`  (11.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 42', TRUE, '2023-08-14 19:53:55', '2023-08-14 19:53:55') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:55.741349' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 119) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 119', 119, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:55', '2023-08-14 19:53:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:55' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.6ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (7.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (15.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (21.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 55ms (Views: 26.9ms | ActiveRecord: 5.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (19.6ms) TRUNCATE TABLE `fe_addresses`  (9.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.5ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:55.975784' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 120) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 120', 120, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 43', TRUE, '2023-08-14 19:53:55', '2023-08-14 19:53:55') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:55.990810' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 121) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 121', 121, '2023-08-14 19:53:55', '2023-08-14 19:53:55')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-14 19:53:55', '2023-08-14 19:53:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.1ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (4.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (5.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 11.5ms | ActiveRecord: 4.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:56.196858' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 122) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 122', 122, '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 44', TRUE, TRUE, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (1.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 45', TRUE, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 46', TRUE, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (2.3ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [2 times] (8.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (10.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (10.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 35ms (Views: 16.0ms | ActiveRecord: 8.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:56.484367' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 123) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 123', 123, '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 47', TRUE, TRUE, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 48', TRUE, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 49', TRUE, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:53:56', '2023-08-14 19:53:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:56' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (4.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (4.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 8.6ms | ActiveRecord: 4.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:56.698330' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 124) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 124', 124, '2023-08-14 19:53:56', '2023-08-14 19:53:56')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb Fe::Element Load (5.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (10.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (28.0ms) Completed 200 OK in 108ms (Views: 94.0ms | ActiveRecord: 6.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (36.7ms) TRUNCATE TABLE `fe_addresses`  (11.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (2.2ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_2', 'fn_2', 'ln_2', 'phone_2', 'email_2@email.com', 'created', '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.4ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-14 19:53:57', '2023-08-14 19:53:57', 1) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (4.0ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-14 19:53:57' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 1, 'relationship_3', 'fn_3', 'ln_3', 'phone_3', 'email_3@email.com', 'created', '2023-08-14 19:53:57', '2023-08-14 19:53:57', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:53:57' WHERE `fe_references`.`id` = 1  (12.1ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (20.5ms) TRUNCATE TABLE `fe_addresses`  (10.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (1.5ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_4', 'fn_4', 'ln_4', 'phone_4', 'email_4@email.com', 'created', '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.6ms) INSERT INTO `fe_references` (`relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES ('relationship_5', 'fn_5', 'ln_5', 'phone_5', 'email_5@email.com', 'created', '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (10.1ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (8.8ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.7ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'dac79d2fdf714ccd3de1e72ff9e8182f' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c25569dfc4cb25b6b6fea140f713ff2b' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '76d4807274dca7bd6cea5cca2adddf68' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c5590d256cb3db9b278fd91a68fec4f3' LIMIT 1 Fe::ReferenceSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'e0010944805ecb52f768c832e8ff382e' LIMIT 1 Fe::ReferenceSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'dacd122083b38f67afa93a439c7886f6' LIMIT 1 Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '566a1017be3d641b467c81a5ee92e15b' LIMIT 1 Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '9286b18362783e88ba44bc07df50f7c7' LIMIT 1 Fe::ReferenceSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '389432327bbdf592c89ae7c96082c23f' LIMIT 1 Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '9ef3a85f9e0ef95e32706d3cf5f4c3fa' LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.5ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:57.996536' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 125) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 125', 125, '2023-08-14 19:53:57', '2023-08-14 19:53:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.000727' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 126) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 126', 126, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.004330' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 127) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 127', 127, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.007535' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 128) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 128', 128, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.010549' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 129', 129, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (2.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_6', 'fn_6', 'ln_6', 'phone_6', 'email_6@email.com', 'created', '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (3.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.5ms) TRUNCATE TABLE `fe_addresses`  (11.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.295283' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 130) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 130', 130, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.299543' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 131) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 131', 131, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.303019' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 132) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 132', 132, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.306233' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 133) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 133', 133, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.309292' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 134) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 134', 134, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (2.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_7', 'fn_7', 'ln_7', 'phone_7', 'email_7@email.com', 'created', '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.6ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.557949' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 135) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 135', 135, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.566335' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 136) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 136', 136, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.569763' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 137) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 137', 137, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.572856' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 138) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 138', 138, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.575861' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 139) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 139', 139, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (2.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_8', 'fn_8', 'ln_8', 'phone_8', 'email_8@email.com', 'created', '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.814888' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 140) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 140', 140, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.819237' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 141) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 141', 141, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.822444' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 142) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 142', 142, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.825681' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 143) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 143', 143, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:58.828670' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 144) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 144', 144, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-14 19:53:58', '2023-08-14 19:53:58', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 3, '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:58' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:58', '2023-08-14 19:53:58')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:58', '2023-08-14 19:53:58')  (37.0ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceSheet Create (0.7ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_9', 'fn_9', 'ln_9', 'phone_9', 'email_9@email.com', 'created', '2023-08-14 19:53:58', '2023-08-14 19:53:58') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (2.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-14 19:53:58' WHERE `fe_references`.`id` = 1  (32.0ms) COMMIT Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (6.5ms) COMMIT Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (24.6ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.190832' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 145) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 145', 145, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.196394' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 146) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 146', 146, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.200278' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 147) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 147', 147, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.203730' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 148', 148, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.207070' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 149) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 149', 149, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 50', TRUE, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:53:59', '2023-08-14 19:53:59', 1, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:59' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:59' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 51', TRUE, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:59' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.308666' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 150) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 150', 150, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.311892' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 151', 151, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.314949' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 152) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 152', 152, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.318053' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 153) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 153', 153, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.321155' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 154) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 154', 154, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_10', 'fn_10', 'ln_10', 'phone_10', 'email_10@email.com', 'created', '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230814195359000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.7ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.506119' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 155) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 155', 155, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.514692' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 156) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 156', 156, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.520172' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 157) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 157', 157, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.524848' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 158) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 158', 158, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.528469' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 159) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 159', 159, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 52', TRUE, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.4ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:53:59', '2023-08-14 19:53:59', 1, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:59' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:59' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 53', TRUE, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:53:59' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.631052' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 160) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 160', 160, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.638680' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 161) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 161', 161, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.642949' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 162) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 162', 162, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.646223' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 163) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 163', 163, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:53:59.649262' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 164) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 164', 164, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_11', 'fn_11', 'ln_11', 'phone_11', 'email_11@email.com', 'created', '2023-08-14 19:53:59', '2023-08-14 19:53:59') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `visible` = FALSE WHERE `fe_references`.`id` = 1  (0.1ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-14 19:53:59', '2023-08-14 19:53:59')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230814195359000000', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-14 19:53:59' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (105.6ms) TRUNCATE TABLE `fe_references`  (95.0ms) TRUNCATE TABLE `fe_users`  (10.1ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.013621' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 165) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 165', 165, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.017948' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 166) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 166', 166, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.021693' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 167) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 167', 167, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.024875' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 168) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 168', 168, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.028180' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 169) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 169', 169, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 54', TRUE, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:00', '2023-08-14 19:54:00', 1, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (3.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:00' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:00' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 55', TRUE, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:00' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.8ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.128966' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 170) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 170', 170, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.132434' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 171) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 171', 171, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.135881' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 172) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 172', 172, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.139235' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 173) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 173', 173, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.142312' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 174) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 174', 174, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_12', 'fn_12', 'ln_12', 'phone_12', 'email_12@email.com', 'created', '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (3.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `visible` = FALSE, `visibility_cache_key` = 'something' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230814195400000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.333574' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 175) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 175', 175, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.338056' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 176) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 176', 176, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.341560' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 177) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 177', 177, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.344768' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 178) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 178', 178, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.349107' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 179) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 179', 179, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 56', TRUE, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:00', '2023-08-14 19:54:00', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:00' WHERE `fe_pages`.`id` = 1  (13.5ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:00' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 57', TRUE, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:00' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.451593' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 180) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 180', 180, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.455483' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 181) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 181', 181, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.458851' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 182) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 182', 182, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.462056' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 183) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 183', 183, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:00.465160' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 184) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 184', 184, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.5ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-14 19:54:00', '2023-08-14 19:54:00')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_13', 'fn_13', 'ln_13', 'phone_13', 'email_13@email.com', 'created', '2023-08-14 19:54:00', '2023-08-14 19:54:00') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230814195400000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:00' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.7ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-08-14 19:54:01' WHERE `fe_answers`.`id` = 1  (2.8ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:01.659751' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 185) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 185', 185, '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 185) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:01.665408' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 185) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 58', TRUE, '2023-08-14 19:54:01', '2023-08-14 19:54:01') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:01', '2023-08-14 19:54:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:01' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:01', '2023-08-14 19:54:01', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-14 19:54:01' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-14 18:54:01', 'relationship_14', 'fn_14', 'ln_14', 'phone_14', 'email_14@email.com', 'started', '2023-08-14 19:54:01', '2023-08-14 19:54:01', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:01' WHERE `fe_references`.`id` = 1  (12.3ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (6.1ms) COMMIT  (0.4ms) BEGIN Fe::EmailTemplate Create (2.3ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.9ms) COMMIT Fe::ReferenceSheet Update (1.1ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:01.894711' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 186) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 186', 186, '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 186) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:01.900275' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 186) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 59', TRUE, '2023-08-14 19:54:01', '2023-08-14 19:54:01') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:01', '2023-08-14 19:54:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:01' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:01', '2023-08-14 19:54:01', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-14 19:54:01' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-14 18:54:01', 'relationship_15', 'fn_15', 'ln_15', 'phone_15', 'email_15@email.com', 'started', '2023-08-14 19:54:01', '2023-08-14 19:54:01', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:01' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-14 19:54:01', '2023-08-14 19:54:01')  (0.9ms) COMMIT Fe::ReferenceSheet Update (1.6ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.6ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.8ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:02.100090' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 187) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 187', 187, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 187) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:02.106252' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 187) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 60', TRUE, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:02' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:02', '2023-08-14 19:54:02', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-14 18:54:02', 'relationship_16', 'fn_16', 'ln_16', 'phone_16', 'email_16@email.com', 'started', '2023-08-14 19:54:02', '2023-08-14 19:54:02', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`id` = 1  (10.5ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (4.8ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.4ms) COMMIT Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b8439bc78bb795020c41666c371c42f4' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'b8439bc78bb795020c41666c371c42f4', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT  (1.7ms) SELECT COUNT(*) FROM `fe_answers`  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (19.5ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:02.350720' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 188) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 188', 188, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 188) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:02.356829' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 188) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 61', TRUE, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:02' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:02', '2023-08-14 19:54:02', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-14 18:54:02', 'relationship_17', 'fn_17', 'ln_17', 'phone_17', 'email_17@email.com', 'started', '2023-08-14 19:54:02', '2023-08-14 19:54:02', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (1.0ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '455babe51562f5c354817a9da5a78799' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = '455babe51562f5c354817a9da5a78799', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:02.549120' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 189) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 189', 189, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 189) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:02.554751' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 189) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 62', TRUE, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:02' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:02', '2023-08-14 19:54:02', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-14 18:54:02', 'relationship_18', 'fn_18', 'ln_18', 'phone_18', 'email_18@email.com', 'started', '2023-08-14 19:54:02', '2023-08-14 19:54:02', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.8ms) COMMIT Fe::ReferenceSheet Update (0.6ms) UPDATE `fe_references` SET `status` = 'created' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b00ad2176acc0cd5ef1f68bfd2db421c' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `access_key` = 'b00ad2176acc0cd5ef1f68bfd2db421c', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 63', TRUE, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_19', 'fn_19', 'ln_19', 'phone_19', 'email_19@email.com', 'created', '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`id` = 1  (11.4ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 64', TRUE, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'some text response', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 65', TRUE, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-14 19:54:02', '2023-08-14 19:54:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_20', 'fn_20', 'ln_20', 'phone_20', 'email_20@email.com', 'created', '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:02' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 66', TRUE, '2023-08-14 19:54:02', '2023-08-14 19:54:02') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.108014' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 190) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 190', 190, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.112100' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 191) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 191', 191, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.115634' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 192) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 192', 192, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.118841' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 193) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 193', 193, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.121902' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 194) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 194', 194, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:03' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_21', 'fn_21', 'ln_21', 'phone_21', 'email_21@email.com', 'created', '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`id` = 1  (11.5ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.340733' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 195) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 195', 195, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.345354' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 196) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 196', 196, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.349045' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 197) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 197', 197, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.352264' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 198) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 198', 198, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.355638' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 199) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 199', 199, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', FALSE, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_22', 'fn_22', 'ln_22', 'phone_22', 'email_22@email.com', 'created', '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (9.8ms) TRUNCATE TABLE `fe_users`  (10.7ms) TRUNCATE TABLE `phone_numbers`  (12.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.535542' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 200) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 200', 200, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.540568' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 201) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 201', 201, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.544746' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 202) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 202', 202, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.547950' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 203) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 203', 203, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.551181' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 204) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 204', 204, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:03' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_23', 'fn_23', 'ln_23', 'phone_23', 'email_23@email.com', 'created', '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.4ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.9ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.756158' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 205) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 205', 205, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.9ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 67', TRUE, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:03' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:03.793357' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 206) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 206, '2023-08-14 19:54:03', '2023-08-14 19:54:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 68', TRUE, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:03' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:03', '2023-08-14 19:54:03', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.6ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_24', 'fn_24', 'ln_24', 'phone_24', 'initial@ref.com', 'created', '2023-08-14 19:54:03', '2023-08-14 19:54:03', 2) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:03' WHERE `fe_references`.`id` = 1  (17.3ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"ref answer here"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'ref answer here', '2023-08-14 19:54:03', '2023-08-14 19:54:03') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 76d64538-acd1-4d32-bf6a-54ba64bf891e) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (11.6ms) Completed 200 OK in 53ms (Views: 22.9ms | ActiveRecord: 6.9ms) Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.9ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (27.3ms) TRUNCATE TABLE `fe_addresses`  (11.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (9.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:04.081336' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 207) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 206', 207, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 69', TRUE, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:04' WHERE `fe_pages`.`id` = 1  (11.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:04' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (11.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_25', 'fn_25', 'ln_25', 'phone_25', 'initial@ref.com', 'created', '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (13.7ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"email"=>"email@reference.com", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "relationship"=>"roommate", "title"=>"A"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (11.3ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 729494bf-b7c9-425e-983d-048d77e00ff3) to Test(default) with arguments: #>, [1] Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'f29872fb32f67ce5f9eeadfe3bdcc921' LIMIT 1 Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = 'f29872fb32f67ce5f9eeadfe3bdcc921' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Update (0.3ms) UPDATE `fe_applications` SET `locale` = NULL WHERE `fe_applications`.`id` = 1  (0.4ms) COMMIT  (0.4ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 39ms (Views: 0.8ms | ActiveRecord: 20.0ms) Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (28.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (8.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:04.358444' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 208) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 207', 208, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 70', TRUE, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:04' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:04.387820' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 209) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 209, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 71', TRUE, 'answer_sheet', 'email', '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:04' WHERE `fe_pages`.`id` = 2  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:04', '2023-08-14 19:54:04', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (3.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-14 19:54:04' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_26', 'fn_26', 'ln_26', 'phone_26', 'initial@ref.com', 'created', '2023-08-14 19:54:04', '2023-08-14 19:54:04', 2) Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:04' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT Fe::ReferenceSheet Exists (0.9ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '6b3de155f3b081c90a312cb8b567d6db' LIMIT 1  (0.3ms) BEGIN Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `access_key` = '6b3de155f3b081c90a312cb8b567d6db', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"a"=>"6b3de155f3b081c90a312cb8b567d6db", "answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"other@email.com"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'other@email.com' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: aef80c5a-b220-4ab7-b2dd-0b8d6565d1f0) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 20ms (Views: 0.7ms | ActiveRecord: 6.2ms) Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (12.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:04.611520' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 210) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 208', 210, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.1ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.9ms) Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 5.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:04.766870' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 211) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 209', 211, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 72', TRUE, TRUE, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:04' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 73', TRUE, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:04' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 74', TRUE, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:04', '2023-08-14 19:54:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:04' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:04', '2023-08-14 19:54:04')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (18.7ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (37.9ms) Completed 200 OK in 48ms (Views: 31.0ms | ActiveRecord: 10.2ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.4ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:05.058013' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 212) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 210', 212, '2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 75', TRUE, TRUE, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:05' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 76', TRUE, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:05' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 77', TRUE, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:05' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (7.2ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (1.2ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (20.7ms) Completed 200 OK in 39ms (Views: 13.9ms | ActiveRecord: 10.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (13.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (13.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:05.446505' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 213) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 211', 213, '2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:05', '2023-08-14 19:54:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 78', TRUE, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:05', '2023-08-14 19:54:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:05' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (77.0ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (152.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (227.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (8.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (83.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (148.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (226.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (95.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (531.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (890.7ms) Completed 200 OK in 970ms (Views: 955.1ms | ActiveRecord: 5.0ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (33.1ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:06.596280' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 214) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 212', 214, '2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.8ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN  (0.2ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (8.4ms) Completed 200 OK in 39ms (Views: 18.9ms | ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM `fe_elements`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (30.1ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (12.5ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (28.2ms) TRUNCATE TABLE `fe_email_templates`  (34.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:06.856739' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 215) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 213', 215, '2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:06', '2023-08-14 19:54:06')  (0.8ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', TRUE, '2023-08-14 19:54:06', '2023-08-14 19:54:06') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:06', '2023-08-14 19:54:06') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:06' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (6.7ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (13.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (20.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (6.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (12.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (19.3ms) Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (35.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (63.1ms) Completed 200 OK in 92ms (Views: 62.7ms | ActiveRecord: 7.9ms)  (1.1ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:07.095011' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 216) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 214', 216, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 79', TRUE, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.4ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-14 19:54:07.139957' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (3.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (16.0ms) Completed 200 OK in 50ms (Views: 16.7ms | ActiveRecord: 16.6ms) Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.5ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:07.331155' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 217) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 215', 217, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:07.338047' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 218) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 216', 218, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 80', TRUE, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 2  (1.0ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.4ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-14 19:54:07.395111' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.6ms) Completed 200 OK in 25ms (Views: 2.1ms | ActiveRecord: 10.6ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (14.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:07.550755' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 219) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 217', 219, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (4.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 81', TRUE, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (1.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.2ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-14 19:54:07.595111' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Condition Update All (1.5ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 Fe::Condition Update All (0.5ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 Fe::TextField Destroy (0.5ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`id` = 1  (0.6ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.9ms) Completed 200 OK in 36ms (Views: 2.5ms | ActiveRecord: 18.8ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (48.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (13.8ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (14.4ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:07.815282' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 220) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 218', 220, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 82', TRUE, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:07', '2023-08-14 19:54:07') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:07' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.8ms) Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (5.7ms) Completed 200 OK in 27ms (Views: 5.9ms | ActiveRecord: 3.7ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (31.2ms) TRUNCATE TABLE `fe_addresses`  (11.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:08.036920' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 221) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 219', 221, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 83', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.2ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1) LIMIT 1  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.5ms) Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (6.9ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:08.206122' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 222) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 220', 222, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 84', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 84', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::TextField Update (0.7ms) UPDATE `fe_elements` SET `share` = FALSE WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.1ms) COMMIT Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (3.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.1ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (3.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (8.4ms) Completed 200 OK in 36ms (Views: 8.1ms | ActiveRecord: 10.8ms) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (53.4ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:08.439262' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 223) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 221', 223, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 85', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 86', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 87', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 88', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 89', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Update (0.8ms) UPDATE `fe_page_elements` SET `position` = 2 WHERE `fe_page_elements`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 2) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-14 19:54:08.524333' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 1) AND (`fe_page_elements`.`position` > 1) AND (`fe_page_elements`.`position` <= 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Update (0.8ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.7ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-14 19:54:08.543032' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 1 WHERE `fe_page_elements`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 1) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.3ms) Completed 200 OK in 59ms (Views: 0.8ms | ActiveRecord: 22.6ms) Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:08', '2023-08-14 19:54:08')  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.8ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:08.727280' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 224) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 222', 224, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 90', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 91', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 92', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 93', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 94', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:08' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 2 WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (1.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Update (0.5ms) UPDATE `fe_elements` SET `position` = 1 WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (1.0ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 36ms (Views: 0.5ms | ActiveRecord: 12.7ms)  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:08.981887' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 225) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 223', 225, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:08', '2023-08-14 19:54:08')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 95', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 96', TRUE, '2023-08-14 19:54:08', '2023-08-14 19:54:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:09', '2023-08-14 19:54:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:09' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:09', '2023-08-14 19:54:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (1.0ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = FALSE AND `fe_elements`.`share` = TRUE AND `fe_elements`.`style` = 'style' ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (2.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (77.9ms) Completed 200 OK in 153ms (Views: 78.8ms | ActiveRecord: 1.2ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:09.338990' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 226) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 224', 226, '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 97', TRUE, '2023-08-14 19:54:09', '2023-08-14 19:54:09') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:09', '2023-08-14 19:54:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:09' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (1.2ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.1ms) Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (3.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (3.8ms) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (8.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (10.5ms) Completed 200 OK in 37ms (Views: 10.5ms | ActiveRecord: 3.4ms)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (25.4ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 98', TRUE, '2023-08-14 19:54:09', '2023-08-14 19:54:09', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:09.569300' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 227) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 225', 227, '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 227) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:09.573887' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 227) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:09', '2023-08-14 19:54:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:09' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.8ms) COMMIT Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 99', TRUE, '2023-08-14 19:54:09', '2023-08-14 19:54:09', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:09.748568' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 228) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 226', 228, '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 228) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:09.753027' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 228) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:09', '2023-08-14 19:54:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:09' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-14 19:54:09', '2023-08-14 19:54:09')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (10.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (8.5ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (8.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (8.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-08-14 19:54:10', '2023-08-14 19:54:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:10.675206' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 229) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 227', 229, '2023-08-14 19:54:10', '2023-08-14 19:54:10')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:10.679593' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 230) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 228', 230, '2023-08-14 19:54:10', '2023-08-14 19:54:10')  (1.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:10.683873' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 231) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 229', 231, '2023-08-14 19:54:10', '2023-08-14 19:54:10')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:10.687332' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 232) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 230', 232, '2023-08-14 19:54:10', '2023-08-14 19:54:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:10.690648' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 233) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 231', 233, '2023-08-14 19:54:10', '2023-08-14 19:54:10')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:10', '2023-08-14 19:54:10', 5, 'Fe::Page') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:10', '2023-08-14 19:54:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:10' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1)  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 2 WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 2)  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `number` = 3 WHERE `fe_pages`.`id` = 3  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 3)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 4  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:10.733916' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 4) AND (`fe_pages`.`number` >= 1) AND (`fe_pages`.`number` < 232)  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 4 WHERE `fe_pages`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 4) Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:10.740938' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 5) AND (`fe_pages`.`number` >= 4) AND (`fe_pages`.`number` < 233)  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (8.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (9.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.011907' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 234) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 232', 234, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.016333' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 235) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 233', 235, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.019790' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 236) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 234', 236, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.023298' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 237) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 235', 237, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.026670' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 238) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 236', 238, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL1', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11') Fe::Page Load (2.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:11', '2023-08-14 19:54:11') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:11' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL2', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'LVL3 (GRID)', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11', 2) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::ChoiceField', 'yes-no', 'LVL4', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'EL (LVL5)', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11', 4) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.8ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.5ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.5ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (16.5ms) COMMIT Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'yes', '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (1.0ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 4, 'yes', '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 2  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (1.0ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (13.2ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (8.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (8.4ms) TRUNCATE TABLE `fe_users`  (9.4ms) TRUNCATE TABLE `phone_numbers`  (8.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.478806' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 239) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 237', 239, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.484293' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 240) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 238', 240, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.488778' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 241) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 239', 241, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.493560' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 242) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 240', 242, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.497948' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 243) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 241', 243, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11', 5, 'Fe::Page', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.3ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:11', '2023-08-14 19:54:11') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:11' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-14 19:54:11', '2023-08-14 19:54:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:11' WHERE `fe_pages`.`id` = 5  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.9ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (9.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (8.5ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (11.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.883940' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 244) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 242', 244, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.888124' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 245) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 243', 245, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.891272' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 246) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 244', 246, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.894429' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 247) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 245', 247, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:11.898677' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 248) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 246', 248, '2023-08-14 19:54:11', '2023-08-14 19:54:11')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::ChoiceField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:11', '2023-08-14 19:54:11', 5, 'Fe::Page') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:11', '2023-08-14 19:54:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:11' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (13.0ms) TRUNCATE TABLE `fe_addresses`  (11.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (9.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.8ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (9.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.336688' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 249) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 247', 249, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.341097' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 250) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 248', 250, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.344541' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 251) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 249', 251, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.347699' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 252) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 250', 252, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.350939' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 253) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 251', 253, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:12', '2023-08-14 19:54:12', 5, 'Fe::Page', 'yes') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:12', '2023-08-14 19:54:12') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:12' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-14 19:54:12', '2023-08-14 19:54:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-14 19:54:12', '2023-08-14 19:54:12') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:12' WHERE `fe_pages`.`id` = 5  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.8ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (53.1ms) TRUNCATE TABLE `fe_applications`  (16.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (15.8ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (1.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.785326' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 254) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 252', 254, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.790691' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 255) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 253', 255, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.793907' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 256) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 254', 256, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.797244' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 257) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 255', 257, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:12.800497' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 256', 258, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the enclosed element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:12', '2023-08-14 19:54:12', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:12', '2023-08-14 19:54:12') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:12' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the enclosing element', TRUE, '2023-08-14 19:54:12', '2023-08-14 19:54:12', 1) Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:54:12', '2023-08-14 19:54:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.2ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:12' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.7ms) COMMIT Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-14 19:54:12', '2023-08-14 19:54:12')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.154268' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 259) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 257', 259, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.159254' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 260) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 258', 260, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.162994' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 261) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 259', 261, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.169386' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 262) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 260', 262, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.172971' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 263) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 261', 263, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:13', '2023-08-14 19:54:13', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:13' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved', TRUE, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:13' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved to become hidden', TRUE, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 3, 3, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:13' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::TextField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.4ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-14 19:54:13.257841' WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:13' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 1  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.535279' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 264) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 262', 264, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.540664' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 265) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 263', 265, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.543896' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 266) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 264', 266, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.546915' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 267) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 265', 267, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:13.550312' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 268) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 266', 268, '2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:13', '2023-08-14 19:54:13', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:13' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:54:13', '2023-08-14 19:54:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:13' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 100', TRUE, TRUE, '2023-08-14 19:54:13', '2023-08-14 19:54:13', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:13', '2023-08-14 19:54:13')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (67.8ms) TRUNCATE TABLE `fe_users`  (12.8ms) TRUNCATE TABLE `phone_numbers`  (9.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:14', '2023-08-14 19:54:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:14', '2023-08-14 19:54:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 101', TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 102', TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 103', TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-08-14 19:54:14', '2023-08-14 19:54:14')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:14.099526' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 269) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 267', 269, '2023-08-14 19:54:14', '2023-08-14 19:54:14')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:14' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:14' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:14' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 104', TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:14' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 105', TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 106', TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT Fe::Question Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 107', TRUE, 'a 1 2', '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 108', TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (8.7ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 109', TRUE, TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 110', TRUE, TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (8.3ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (8.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 111', TRUE, TRUE, '2023-08-14 19:54:14', '2023-08-14 19:54:14', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.7ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (5.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.6ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 112', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:15.381383' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 270) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 268', 270, '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:15.387110' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 271) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 269', 271, '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:15' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:15' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT Fe::Page Update (1.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:15.565880' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 272) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 270', 272, '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 113', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:15' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 114', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:15.751052' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 273) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 271', 273, '2023-08-14 19:54:15', '2023-08-14 19:54:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 115', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:15' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 116', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.0ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (9.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 117', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 118', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:15' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 119', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:15' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 120', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:15' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:15', '2023-08-14 19:54:15', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (36.0ms) TRUNCATE TABLE `fe_addresses`  (11.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 121', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 122', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 123', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.4ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 4, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 124', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid conditional visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 2, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (16.4ms) COMMIT Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (35.7ms) TRUNCATE TABLE `fe_addresses`  (10.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 125', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 126', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 127', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 4) Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 128', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 7, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.0ms) TRUNCATE TABLE `fe_addresses`  (10.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 129', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 130', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 131', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 4, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 132', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:16' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.4ms) TRUNCATE TABLE `fe_addresses`  (10.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (8.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:16', '2023-08-14 19:54:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-14 19:54:16', '2023-08-14 19:54:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 133', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 134', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16', 'test') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 135', TRUE, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-08-14 19:54:16', '2023-08-14 19:54:16')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:16.940758' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 274) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 272', 274, '2023-08-14 19:54:16', '2023-08-14 19:54:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:16' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.5ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:16' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:16', '2023-08-14 19:54:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:16' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:16', '2023-08-14 19:54:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-14 19:54:16', '2023-08-14 19:54:16')  (0.9ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'nomatch', '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.147260' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 275) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 273', 275, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.152073' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 276) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 274', 276, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.155309' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 277) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 275', 277, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.158226' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 278) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 276', 278, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.161323' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 279) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 277', 279, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 136', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:17', '2023-08-14 19:54:17') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:17' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.354864' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 280) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 278', 280, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.359334' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 281) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 279', 281, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.362723' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 282) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 280', 282, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.365777' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 283) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 281', 283, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.3ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:17.368719' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 284) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 282', 284, '2023-08-14 19:54:17', '2023-08-14 19:54:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 137', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:17', '2023-08-14 19:54:17') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:17' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17', 'Fe::Element') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 138', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (15.5ms) COMMIT  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (13.5ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 139', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ChoiceField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `content_translations`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 140', '1\r\n2', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17', '---\nfr: \'\'\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 141', TRUE, '2023-08-14 19:54:17', '2023-08-14 19:54:17') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 142', TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 143', TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.017715' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 285) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 283', 285, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 143', TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 144', TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 145', TRUE, 0, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 146', TRUE, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.241439' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 286) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 284', 286, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.6ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 146', TRUE, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (13.3ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (12.8ms) TRUNCATE TABLE `fe_conditions`  (14.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 147', TRUE, TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 148', TRUE, TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.448042' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 287) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 285', 287, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.451395' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 288) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 286', 288, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.454462' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 289) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 287', 289, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.457526' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 290) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 288', 290, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.460761' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 291) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 289', 291, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.470332' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 292) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 290', 292, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.473431' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 293) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 291', 293, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.476469' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 294) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 292', 294, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.479503' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 295) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 293', 295, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.482603' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 296) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 294', 296, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 6  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.525707' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 297) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 295', 297, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 149', TRUE, TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18', TRUE) Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 150', TRUE, TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.8ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.684413' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 298) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 296', 298, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.687628' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 299) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 297', 299, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.690546' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 300) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 298', 300, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.693643' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 301) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 299', 301, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.696864' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 302) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 300', 302, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.705998' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 303) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 301', 303, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.709076' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 304) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 302', 304, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.712083' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 305) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 303', 305, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.715304' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 306) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 304', 306, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.718634' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 307) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 305', 307, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.5ms) UPDATE `fe_answers` SET `value` = 'match' WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 151', TRUE, TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 152', TRUE, TRUE, '2023-08-14 19:54:18', '2023-08-14 19:54:18', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.931812' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 308) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 306', 308, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.935293' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 309) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 307', 309, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.938400' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 310) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 308', 310, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.941406' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 311) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 309', 311, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.944601' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 312) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 310', 312, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.953715' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 313) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 311', 313, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.956972' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 314) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 312', 314, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.960065' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 315) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 313', 315, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.963956' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 316) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 314', 316, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:18.967165' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 317) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 315', 317, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 6  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-14 19:54:18', '2023-08-14 19:54:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:18' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 153', TRUE, TRUE, '2023-08-14 19:54:19', '2023-08-14 19:54:19', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 154', TRUE, TRUE, '2023-08-14 19:54:19', '2023-08-14 19:54:19', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.169943' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 318) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 316', 318, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.173071' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 319) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 317', 319, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.176261' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 320) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 318', 320, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.179393' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 321) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 319', 321, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.182620' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 322) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 320', 322, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.192199' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 323) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 321', 323, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.195490' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 324) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 322', 324, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.198393' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 325) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 323', 325, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.201615' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 326) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 324', 326, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.204606' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 327) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 325', 327, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-14 19:54:19', '2023-08-14 19:54:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:19' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-14 19:54:19', '2023-08-14 19:54:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:19' WHERE `fe_pages`.`id` = 6  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.250983' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 328) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 326', 328, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.255500' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 329) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 327', 329, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.259314' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 330) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 328', 330, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.262832' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 331) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 329', 331, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.265822' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 332) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 330', 332, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.9ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (13.8ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.8ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 7ddf6f04-08e9-4fee-96b6-0a8d7a0fc863) to Test(default) with arguments: #>, [1] Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (9.4ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.556911' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 333) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 331', 333, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.561675' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 334) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 332', 334, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.565016' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 335) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 333', 335, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.568025' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 336) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 334', 336, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.571012' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 337) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 335', 337, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 155', TRUE, '2023-08-14 19:54:19', '2023-08-14 19:54:19') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:19' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:19', '2023-08-14 19:54:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:19' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:19' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 156', TRUE, '2023-08-14 19:54:19', '2023-08-14 19:54:19') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:19' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:19', '2023-08-14 19:54:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:19' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:19' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.633816' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 338) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 336', 338, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.637038' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 339) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 337', 339, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.640147' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 340) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 338', 340, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.643159' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 341) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 339', 341, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:19.646303' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 342) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 340', 342, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-14 19:54:19', '2023-08-14 19:54:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 157', TRUE, '2023-08-14 19:54:19', '2023-08-14 19:54:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (10.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:20.541417' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 343) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 341', 343, '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:20.545570' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 344) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 342', 344, '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:20.549375' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 345) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 343', 345, '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:20.552942' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 346) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 344', 346, '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:20.556204' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 347) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 345', 347, '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (3.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will show the next element if the answer is yes', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:20', '2023-08-14 19:54:20', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-14 19:54:20', '2023-08-14 19:54:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:20' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that is made visible by the previous element', TRUE, '2023-08-14 19:54:20', '2023-08-14 19:54:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-14 19:54:20', '2023-08-14 19:54:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:20' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.5ms) UPDATE `fe_answers` SET `value` = 'yes' WHERE `fe_answers`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (12.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:20.923450' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 348) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 346', 348, '2023-08-14 19:54:20', '2023-08-14 19:54:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 158', TRUE, '2023-08-14 19:54:20', '2023-08-14 19:54:20') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:20', '2023-08-14 19:54:20') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:20' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-14 19:54:20.955889' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:20' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.5ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.1ms) TRUNCATE TABLE `fe_conditions`  (10.3ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:21.087163' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 349) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 347', 349, '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.6ms) COMMIT Fe::Element Load (3.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:21.225212' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 350) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 348', 350, '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 159', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 160', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 161', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:21' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 162', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (10.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:21.426824' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 349', 351, '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:21.431492' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 349', 351, '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.3ms) COMMIT Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (25.7ms) TRUNCATE TABLE `fe_question_sheets`  (25.7ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:21.603083' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 352) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 350', 352, '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGridWithTotal Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'grid', 'Label Element 163', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-14 19:54:21.655274' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 1) Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:21' WHERE `fe_pages`.`id` = 1  (5.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 164', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 165', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-14 19:54:21.696601' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 2) Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:21' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 166', TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (9.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:21.867739' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 353) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 351', 353, TRUE, '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.6ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-08-14 19:54:21', '2023-08-14 19:54:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (2.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:22.001085' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 354) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 352', 354, '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.5ms) COMMIT Fe::Element Load (3.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (7.1ms) TRUNCATE TABLE `fe_applications`  (8.9ms) TRUNCATE TABLE `fe_conditions`  (9.4ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (6.2ms) TRUNCATE TABLE `fe_page_elements`  (6.2ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:22.136919' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 355) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (1, 'Label Page 353', 355, '2023-08-14 19:54:22', '2023-08-14 19:54:22', '2,1')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 167', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 168', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.8ms) TRUNCATE TABLE `fe_addresses`  (6.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (9.0ms) TRUNCATE TABLE `fe_conditions`  (9.6ms) TRUNCATE TABLE `fe_elements`  (6.1ms) TRUNCATE TABLE `fe_email_templates`  (6.6ms) TRUNCATE TABLE `fe_page_elements`  (5.7ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (11.6ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:22.276907' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 356) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 354', 356, '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 169', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:22' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 170', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 171', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:22' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 172', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.4ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.0ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (8.3ms) TRUNCATE TABLE `fe_conditions`  (9.6ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (6.2ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.2ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (6.2ms) TRUNCATE TABLE `phone_numbers`  (5.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:22.462988' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 357) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 355', 357, '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.4ms) COMMIT Fe::Element Load (3.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (6.6ms) TRUNCATE TABLE `fe_addresses`  (6.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.8ms) TRUNCATE TABLE `fe_answers`  (6.9ms) TRUNCATE TABLE `fe_applications`  (8.3ms) TRUNCATE TABLE `fe_conditions`  (9.5ms) TRUNCATE TABLE `fe_elements`  (6.1ms) TRUNCATE TABLE `fe_email_templates`  (6.1ms) TRUNCATE TABLE `fe_page_elements`  (5.8ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (5.8ms) TRUNCATE TABLE `fe_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_references`  (6.1ms) TRUNCATE TABLE `fe_users`  (6.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:22.584350' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 358) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 356', 358, '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (3.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 173', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 174', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22', 1, 'Fe::Element', 'asdf') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:22' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:22' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGridWithTotal Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::QuestionGridWithTotal', 'grid', 'Label Element 175', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'short', 'Label Element 176', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.5ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'asdf', '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.5ms) UPDATE `fe_answers` SET `value` = 'something else' WHERE `fe_answers`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (9.0ms) TRUNCATE TABLE `fe_people`  (8.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (6.4ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:22.924186' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 359) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 357', 359, '2023-08-14 19:54:22', '2023-08-14 19:54:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 177', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:22' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 178', TRUE, '2023-08-14 19:54:22', '2023-08-14 19:54:22') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.8ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.7ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (8.5ms) TRUNCATE TABLE `fe_conditions`  (10.0ms) TRUNCATE TABLE `fe_elements`  (6.3ms) TRUNCATE TABLE `fe_email_templates`  (6.1ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.2ms) TRUNCATE TABLE `fe_people`  (5.6ms) TRUNCATE TABLE `fe_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_references`  (5.6ms) TRUNCATE TABLE `fe_users`  (6.2ms) TRUNCATE TABLE `phone_numbers`  (5.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:23.073982' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 360) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 358', 360, '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 179', TRUE, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:23' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (9.7ms) TRUNCATE TABLE `fe_elements`  (6.3ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.9ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:23.225782' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 361) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 359', 361, '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 180', TRUE, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:23' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 181', TRUE, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 182', TRUE, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.2ms) TRUNCATE TABLE `fe_addresses`  (7.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (9.8ms) TRUNCATE TABLE `fe_conditions`  (9.4ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (180.3ms) TRUNCATE TABLE `fe_pages`  (132.8ms) TRUNCATE TABLE `fe_people`  (39.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.1ms) TRUNCATE TABLE `phone_numbers`  (5.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (5.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:23.750930' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 362) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 360', 362, '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (22.1ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (3.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'section', 'Label Element 183', TRUE, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:23' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (9.7ms) TRUNCATE TABLE `fe_conditions`  (10.2ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 184', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:23', '2023-08-14 19:54:23', 'a;b') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:23.960284' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 363) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 361', 363, '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 363) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:23.966921' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 363) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (1.0ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:23', '2023-08-14 19:54:23') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:23' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-14 19:54:23', '2023-08-14 19:54:23')  (0.8ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 185', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:24', '2023-08-14 19:54:24', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:24.166279' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 364) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 362', 364, '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 364) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:24.172265' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 364) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:24', '2023-08-14 19:54:24') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:24' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 186', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:24', '2023-08-14 19:54:24', '') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:24.358272' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 365) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 363', 365, '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 365) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:24.363619' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 365) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:24', '2023-08-14 19:54:24') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:24' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 187', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-14 19:54:24', '2023-08-14 19:54:24', 'a; b\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:24.544409' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 366) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 364', 366, '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 366) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:24.549081' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 366) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:24', '2023-08-14 19:54:24') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:24' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-14 19:54:24', '2023-08-14 19:54:24')  (0.4ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (13.1ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (13.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.9ms) TRUNCATE TABLE `fe_addresses`  (11.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.1ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.0ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (9.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (35.1ms) TRUNCATE TABLE `fe_people`  (12.2ms) TRUNCATE TABLE `fe_question_sheets`  (11.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (50.0ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:27', '2023-08-14 19:54:27')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-14 19:54:27', '2023-08-14 19:54:27') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-08-14 19:54:27', '2023-08-14 19:54:27')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:27', '2023-08-14 19:54:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-14 19:54:27', '2023-08-14 19:54:27') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-14 19:54:27 UTC', '2023-08-14 19:54:27', '2023-08-14 19:54:27')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:28', '2023-08-14 19:54:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-14 19:54:28', '2023-08-14 19:54:28') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-08-14 19:54:28', '2023-08-14 19:54:28')  (0.6ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (34.3ms) TRUNCATE TABLE `fe_answers`  (12.9ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-08-14 19:54:28', '2023-08-14 19:54:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:28', '2023-08-14 19:54:28', 1) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-14 19:54:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 'relationship_27', 'fn_27', 'ln_27', 'phone_27', 'email_24@email.com', 'created', '2023-08-14 19:54:28', '2023-08-14 19:54:28', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-14 19:54:28' WHERE `fe_references`.`id` = 1  (12.1ms) COMMIT  (0.5ms) BEGIN Fe::QuestionSheet Create (0.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-08-14 19:54:28', '2023-08-14 19:54:28')  (6.5ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Update (0.7ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-14 19:54:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (23.2ms) COMMIT Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-08-14 19:54:28', '2023-08-14 19:54:28')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Update (0.5ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-08-14 19:54:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:28', '2023-08-14 19:54:28') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-14 19:54:28', '2023-08-14 19:54:28') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-14 19:54:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (70.7ms) TRUNCATE TABLE `fe_references`  (103.9ms) TRUNCATE TABLE `fe_users`  (11.7ms) TRUNCATE TABLE `phone_numbers`  (8.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (11.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 188', TRUE, 'test', '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (22.3ms) COMMIT  (0.5ms) BEGIN Fe::QuestionSheet Create (2.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.731099' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 367) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 365', 367, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.736529' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 368) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 366', 368, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.740420' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 369) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 367', 369, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.743789' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 370) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 368', 370, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.747079' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 371) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 369', 371, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:29' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 189', TRUE, '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:29' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 190', TRUE, 'test', '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (2.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.936435' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 372) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 370', 372, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.939859' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 373) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 371', 373, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.942934' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 374) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 372', 374, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.945969' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 375) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 373', 375, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.949147' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 376) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 374', 376, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:29' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 191', TRUE, '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.973337' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 377) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 375', 377, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.976642' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 378) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 376', 378, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.980130' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 379) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 377', 379, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.983522' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 380) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 378', 380, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:29.986679' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 381) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 379', 381, '2023-08-14 19:54:29', '2023-08-14 19:54:29')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-14 19:54:29', '2023-08-14 19:54:29') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:29' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `slug` = 'test', `updated_at` = '2023-08-14 19:54:30' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 192', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 193', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 194', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (11.7ms) COMMIT  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (18.7ms) TRUNCATE TABLE `fe_addresses`  (39.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 195', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 196', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 197', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 198', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 199', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:30', '2023-08-14 19:54:30')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AttachmentField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'section', 'Label Element 200', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `attachment_file_name`, `created_at`, `updated_at`) VALUES (1, 3, 'test_file', 'test_file', '2023-08-14 19:54:30', '2023-08-14 19:54:30')  (0.5ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.3ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 201', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 202', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 203', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (8.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-08-14 19:54:30', '2023-08-14 19:54:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:30.984622' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 382) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 380', 382, '2023-08-14 19:54:30', '2023-08-14 19:54:30')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-14 19:54:30', '2023-08-14 19:54:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.5ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:31.204626' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 383) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 381', 383, '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (4.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:31.427387' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 384) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 382', 384, '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 2', '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:31.658896' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 385) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 383', 385, '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (11.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:31.898424' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 386) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 384', 386, '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-14 19:54:31', '2023-08-14 19:54:31', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:31', '2023-08-14 19:54:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:31' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-14 19:54:31', '2023-08-14 19:54:31')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:32.139212' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 387) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 385', 387, '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.5ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.4ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'choice 1', '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:32.390085' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 388) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 386', 388, '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32', TRUE) Fe::Page Load (1.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-14 19:54:32', '2023-08-14 19:54:32', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-14 19:54:32', '2023-08-14 19:54:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-14 19:54:32' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, '', '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (1.0ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) COMMIT  (1.0ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.4ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.1ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.9ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.3ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (34.5ms) TRUNCATE TABLE `fe_addresses`  (10.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-14 19:54:32', '2023-08-14 19:54:32')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.3ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (92.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (13.3ms) TRUNCATE TABLE `fe_answers`  (11.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (13.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (1.1ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.4ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.3ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 3.1ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (0.7ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.7ms) UPDATE `fe_question_sheets` SET `archived` = TRUE WHERE `fe_question_sheets`.`id` = 1  (0.8ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.9ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', TRUE, '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = FALSE ORDER BY label Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = TRUE ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin (19.6ms) Completed 200 OK in 30ms (Views: 23.3ms | ActiveRecord: 0.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (0.5ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166 - COPY', '2023-08-14 19:54:33', '2023-08-14 19:54:33')  (0.5ms) COMMIT Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 2.5ms)  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', TRUE, '2023-08-14 19:54:34', '2023-08-14 19:54:34')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = FALSE WHERE `fe_question_sheets`.`id` = 1  (0.8ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.4ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.5ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', '2023-08-14 19:54:34', '2023-08-14 19:54:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:34.211182' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 389) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 387', 389, '2023-08-14 19:54:34', '2023-08-14 19:54:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-14 19:54:34.215385' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 390) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 388', 390, '2023-08-14 19:54:34', '2023-08-14 19:54:34')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (1.2ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb [2 times] (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (6.1ms) Fe::Element Load (5.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (7.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin (34.1ms) Completed 200 OK in 45ms (Views: 32.4ms | ActiveRecord: 6.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (21.6ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (191.4ms) TRUNCATE TABLE `fe_applications`  (17.1ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (16.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:43', '2023-08-15 14:07:43')  (12.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 1c258c33-97ad-4723-933b-e019276710a3) to Test(default) with arguments: #>, [1] Fe::Application Load (0.7ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) select table_name from information_schema.views where table_schema = 'fe_test'  (37.2ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (9.3ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-08-15 14:07:43', '2023-08-15 14:07:43')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.9ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:43.786948' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 1) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 1', 1, '2023-08-15 14:07:43', '2023-08-15 14:07:43')  (11.8ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:43.805514' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 2) Fe::Page Create (0.6ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 2', 2, '2023-08-15 14:07:43', '2023-08-15 14:07:43')  (2.7ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:43.814648' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 3) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 3', 3, '2023-08-15 14:07:43', '2023-08-15 14:07:43')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:43.819675' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 4) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 4', 4, '2023-08-15 14:07:43', '2023-08-15 14:07:43')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:43.823701' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 5) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 5', 5, '2023-08-15 14:07:43', '2023-08-15 14:07:43')  (0.6ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 1', TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (11.7ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 2', TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.121730' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 6) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 6', 6, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.125087' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 7) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 7', 7, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.127997' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 8) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 8', 8, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.130892' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 9) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 9', 9, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.134194' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 10) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 10', 10, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 3', TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (8.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (11.6ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (2.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.351519' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 11) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 11', 11, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (2.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.8ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (4.5ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (9.5ms) Completed 200 OK in 39ms (Views: 18.1ms | ActiveRecord: 9.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.6ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.572888' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 12) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 12', 12, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 4', TRUE, TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 5', TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 6', TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (7.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (18.6ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (40.7ms) Completed 200 OK in 52ms (Views: 32.3ms | ActiveRecord: 11.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.0ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:44.864878' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 13) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 13', 13, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 7', TRUE, TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 8', TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 9', TRUE, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:44', '2023-08-15 14:07:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:44' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:44', '2023-08-15 14:07:44')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (1.0ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.2ms)  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (7.4ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (1.2ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (24.4ms) Completed 200 OK in 33ms (Views: 16.0ms | ActiveRecord: 11.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:45.108013' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 14) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 14', 14, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 10', TRUE, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:45' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_1', 'fn_1', 'ln_1', 'phone_1', 'initial@ref.com', 'created', '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.9ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"email"=>"email@reference.com", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "relationship"=>"roommate", "title"=>"A"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: c12f6697-1787-4344-af54-7d015115f93a) to Test(default) with arguments: #>, [1] Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '7de2cc455b2f515dbb53745f7be0793d' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = '7de2cc455b2f515dbb53745f7be0793d' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Update (0.3ms) UPDATE `fe_applications` SET `locale` = NULL WHERE `fe_applications`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (11.5ms) Completed 200 OK in 78ms (Views: 31.1ms | ActiveRecord: 10.8ms) Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.2ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:45.436408' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 15) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 15', 15, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 11', TRUE, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:45.464576' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 16) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 16, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 12', TRUE, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:45' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:45', '2023-08-15 14:07:45', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:07:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_2', 'fn_2', 'ln_2', 'phone_2', 'initial@ref.com', 'created', '2023-08-15 14:07:45', '2023-08-15 14:07:45', 2) Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:45' WHERE `fe_references`.`id` = 1  (11.2ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"ref answer here"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'ref answer here', '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: b9ab9923-e3d4-42ac-bf33-d500b061937b) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 26ms (Views: 0.7ms | ActiveRecord: 7.6ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:45.698869' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 17) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 16', 17, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 13', TRUE, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:45.728259' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 18) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 18, '2023-08-15 14:07:45', '2023-08-15 14:07:45')  (34.5ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 14', TRUE, 'answer_sheet', 'email', '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:07:45', '2023-08-15 14:07:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:45' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:45', '2023-08-15 14:07:45', 2) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (2.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:07:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_3', 'fn_3', 'ln_3', 'phone_3', 'initial@ref.com', 'created', '2023-08-15 14:07:45', '2023-08-15 14:07:45', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:45' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'bedf606e654b53b29c77ee7db5c35223' LIMIT 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `access_key` = 'bedf606e654b53b29c77ee7db5c35223', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"a"=>"bedf606e654b53b29c77ee7db5c35223", "answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"other@email.com"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `email` = 'other@email.com' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 4674b5a4-bc90-46c3-8b72-804efdeb7d30) to Test(default) with arguments: #>, [2]  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 20ms (Views: 0.7ms | ActiveRecord: 6.7ms) Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (15.0ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (54.0ms) TRUNCATE TABLE `fe_elements`  (8.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (19.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (11.7ms) TRUNCATE TABLE `fe_answers`  (10.7ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-08-15 14:07:46', '2023-08-15 14:07:46')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:46.543784' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 17', 19, '2023-08-15 14:07:46', '2023-08-15 14:07:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 15', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 16', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:46.581963' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 20) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 18', 20, '2023-08-15 14:07:46', '2023-08-15 14:07:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 17', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 3, 1, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:46' WHERE `fe_pages`.`id` = 2  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 18', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 4, 2, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:46' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT Fe::Page Update (1.4ms) UPDATE `fe_pages` SET `all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-08-15 14:07:46', '2023-08-15 14:07:46')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:46.755332' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 21) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 19', 21, '2023-08-15 14:07:46', '2023-08-15 14:07:46')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 19', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:46' WHERE `fe_pages`.`id` = 1  (32.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 20', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (42.5ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 21', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (17.1ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 22', TRUE, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2023-08-15 14:07:46', '2023-08-15 14:07:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.013294' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 22) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 20', 22, '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 23', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 5, 1, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::TextField', 'short', 'Label Element 24', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (1.2ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::Section', 'section', 'Label Element 25', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (5.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 26', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 8, 2, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.228430' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 23) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 21', 23, '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 23) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.234581' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 23) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (2.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (6.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.373927' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (2, 'Label Page 22', 24, '2023-08-15 14:07:47', '2023-08-15 14:07:47', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.380398' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 25) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (3, 'Label Page 23', 25, '2023-08-15 14:07:47', '2023-08-15 14:07:47', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 27', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 24) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.401755' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 24) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 25) AND (`fe_pages`.id != 2) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.406121' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 2) AND (`fe_pages`.`number` >= 25) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT  (0.8ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.547438' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 26) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 24', 26, '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 28', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 29', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 30', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 31', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.744199' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 27) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 25', 27, '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 32', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 33', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 34', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 35', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:47.959319' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 28) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 26', 28, '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:47', '2023-08-15 14:07:47')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 36', TRUE, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:47', '2023-08-15 14:07:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:47' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (63.9ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (134.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (207.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (7.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (74.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (160.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (225.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (97.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (524.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (867.2ms) Completed 200 OK in 1035ms (Views: 1015.2ms | ActiveRecord: 7.2ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (31.0ms) TRUNCATE TABLE `fe_addresses`  (10.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:49.175461' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 29) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 27', 29, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 37', TRUE, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:49' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.2ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1) LIMIT 1  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (6.8ms) Completed 200 OK in 33ms (Views: 13.4ms | ActiveRecord: 1.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:49.369355' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 30) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 28', 30, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 38', TRUE, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:49' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (7.1ms) Fe::Element Load (1.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (16.8ms) Completed 200 OK in 32ms (Views: 15.9ms | ActiveRecord: 3.7ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (8.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:49.568228' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 31) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 29', 31, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 39', TRUE, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:49' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.9ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.2ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:07:49.618870' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:49' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (9.3ms) Completed 200 OK in 34ms (Views: 9.7ms | ActiveRecord: 8.0ms) Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:49.784193' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 32) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 30', 32, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:49.791180' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 33) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 31', 33, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 40', TRUE, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:49' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:49' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.2ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.2ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:07:49.836052' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:49' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.5ms) Completed 200 OK in 20ms (Views: 2.0ms | ActiveRecord: 7.8ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.9ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:49.992069' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 34) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 32', 34, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:49', '2023-08-15 14:07:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 41', TRUE, '2023-08-15 14:07:49', '2023-08-15 14:07:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:50' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:07:50.029567' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:50' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Condition Update All (0.8ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 Fe::Condition Update All (0.2ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 Fe::TextField Destroy (0.3ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.5ms) Completed 200 OK in 26ms (Views: 1.9ms | ActiveRecord: 13.5ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:50.180264' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 35) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 33', 35, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 42', TRUE, '2023-08-15 14:07:50', '2023-08-15 14:07:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (1.1ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.1ms) Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (6.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (14.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (20.8ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (36.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (43.4ms) Completed 200 OK in 62ms (Views: 43.1ms | ActiveRecord: 2.7ms)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:50.403092' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 36) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 34', 36, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.7ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.4ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM `fe_elements`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (29.7ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:50.581874' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 37) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 35', 37, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.5ms) COMMIT  (2.0ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', TRUE, '2023-08-15 14:07:50', '2023-08-15 14:07:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:50' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (9.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.3ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (21.6ms) Completed 200 OK in 52ms (Views: 21.3ms | ActiveRecord: 7.4ms)  (1.1ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:50.779069' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 38) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 36', 38, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 43', TRUE, '2023-08-15 14:07:50', '2023-08-15 14:07:50', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 43', TRUE, '2023-08-15 14:07:50', '2023-08-15 14:07:50', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:07:50', '2023-08-15 14:07:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:50' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `share` = FALSE WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (3.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.1ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (8.3ms) Completed 200 OK in 32ms (Views: 8.0ms | ActiveRecord: 8.4ms) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.3ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (41.4ms) TRUNCATE TABLE `fe_answers`  (11.3ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:51.033582' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 39) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 37', 39, '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 44', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 45', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (0.9ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = FALSE AND `fe_elements`.`share` = TRUE AND `fe_elements`.`style` = 'style' ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (1.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (69.1ms) Completed 200 OK in 140ms (Views: 69.7ms | ActiveRecord: 1.2ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (12.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:51.358305' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 40) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 38', 40, '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 46', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 47', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 48', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 49', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 50', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Update (0.5ms) UPDATE `fe_page_elements` SET `position` = 2 WHERE `fe_page_elements`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 2) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:07:51.462732' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 1) AND (`fe_page_elements`.`position` > 1) AND (`fe_page_elements`.`position` <= 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Update (0.7ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.6ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.6ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:07:51.490674' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Update (0.7ms) UPDATE `fe_page_elements` SET `position` = 1 WHERE `fe_page_elements`.`id` = 3  (0.6ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.3ms) Completed 200 OK in 72ms (Views: 0.7ms | ActiveRecord: 26.5ms) Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:51.665197' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 41) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 39', 41, '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:51', '2023-08-15 14:07:51')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 51', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 52', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 53', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 54', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 55', TRUE, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:51', '2023-08-15 14:07:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:51' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 2 WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 1 WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 32ms (Views: 0.5ms | ActiveRecord: 11.0ms)  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceSheet Create (1.7ms) INSERT INTO `fe_references` (`relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES ('relationship_4', 'fn_4', 'ln_4', 'phone_4', 'email_1@email.com', 'created', '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (10.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:07:52', '2023-08-15 14:07:52', 1) Fe::Page Load (2.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:07:52' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 1, 'relationship_5', 'fn_5', 'ln_5', 'phone_5', 'email_2@email.com', 'created', '2023-08-15 14:07:52', '2023-08-15 14:07:52', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:52' WHERE `fe_references`.`id` = 1  (12.3ms) COMMIT  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (19.9ms) TRUNCATE TABLE `fe_addresses`  (11.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::Person Create (1.5ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (2.0ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_6', 'fn_6', 'ln_6', 'phone_6', 'email_3@email.com', 'created', '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.6ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (1.6ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_7', 'fn_7', 'ln_7', 'phone_7', 'email_4@email.com', 'created', '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.7ms) COMMIT Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.7ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '7e1319fe1539335fa672a7ee99331c16' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '50aea0e7ad6471e4a12248c61da22c27' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'a256d8adac7a46188957eb72328a8cf6' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'feb6f5f32df87e1891eccd97a76b518d' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '554b567b55a6fb2785f04bab0e2ded9d' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'da1a66b67ff6f12905d05d3e8fd31670' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '97f6419b87f16938c7e9c643b82782da' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'edb05d2f85deb5e4e8ed95b40e8fe352' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c11c391a776fa97f2be0339dc69b17b1' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c3463cd5e20582f9fa8358181532281d' LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 56', TRUE, '2023-08-15 14:07:52', '2023-08-15 14:07:52') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:52' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:52', '2023-08-15 14:07:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_8', 'fn_8', 'ln_8', 'phone_8', 'email_5@email.com', 'created', '2023-08-15 14:07:52', '2023-08-15 14:07:52') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:52' WHERE `fe_references`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 57', TRUE, '2023-08-15 14:07:52', '2023-08-15 14:07:52') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.1ms) TRUNCATE TABLE `fe_email_templates`  (6.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 58', TRUE, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_9', 'fn_9', 'ln_9', 'phone_9', 'email_6@email.com', 'created', '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (3.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`id` = 1  (11.7ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 59', TRUE, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'some text response', '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.286209' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 42) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 40', 42, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.290893' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 43) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 41', 43, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.294341' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 44) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 42', 44, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.297634' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 45) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 43', 45, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.300836' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 46) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 44', 46, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:53' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_10', 'fn_10', 'ln_10', 'phone_10', 'email_7@email.com', 'created', '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.498265' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 47) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 45', 47, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.502358' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 48) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 46', 48, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.505884' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 49) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 47', 49, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.509250' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 50) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 48', 50, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.512563' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 51) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 49', 51, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', FALSE, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_11', 'fn_11', 'ln_11', 'phone_11', 'email_8@email.com', 'created', '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`id` = 1  (1.2ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.679252' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 52) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 50', 52, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.683586' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 53) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 51', 53, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.687035' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 54) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 52', 54, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.690101' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 55) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 53', 55, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.693084' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 56) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 54', 56, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:53' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_12', 'fn_12', 'ln_12', 'phone_12', 'email_9@email.com', 'created', '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.887156' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 57) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 55', 57, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.891549' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 58) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 56', 58, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.895039' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 59) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 57', 59, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.898396' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 60) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 58', 60, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:53.901574' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 61) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 59', 61, '2023-08-15 14:07:53', '2023-08-15 14:07:53')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 60', TRUE, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:53', '2023-08-15 14:07:53', 1, 'Fe::Element', 'yes') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:53' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:53' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 61', TRUE, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:53' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:53', '2023-08-15 14:07:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.024374' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 62) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 60', 62, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.027572' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 63) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 61', 63, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.030536' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 64) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 62', 64, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.033740' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 65) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 63', 65, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.036886' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 66) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 64', 66, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_13', 'fn_13', 'ln_13', 'phone_13', 'email_10@email.com', 'created', '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815140754000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`id` = 1  (5.9ms) COMMIT Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.226598' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 67) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 65', 67, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.231599' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 68) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 66', 68, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.235060' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 69) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 67', 69, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.238113' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 70) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 68', 70, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.241237' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 71) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 69', 71, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (4.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 62', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (4.0ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 63', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.342629' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 72) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 70', 72, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.346064' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 73) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 71', 73, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.349318' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 74) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 72', 74, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.352460' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 75) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 73', 75, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.355584' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 76) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 74', 76, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_14', 'fn_14', 'ln_14', 'phone_14', 'email_11@email.com', 'created', '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`id` = 1  (6.6ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `visible` = FALSE WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815140754000000', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (8.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (32.6ms) TRUNCATE TABLE `fe_references`  (27.0ms) TRUNCATE TABLE `fe_users`  (9.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.599325' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 77) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 75', 77, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.604110' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 78) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 76', 78, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.607749' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 79) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 77', 79, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.610858' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 80) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 78', 80, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.614024' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 81) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 79', 81, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 64', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54', 1, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (1.0ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (6.5ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 65', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.709486' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 82) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 80', 82, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.713088' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 83) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 81', 83, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.716568' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 84) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 82', 84, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.719766' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 85) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 83', 85, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.723005' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 86) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 84', 86, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_15', 'fn_15', 'ln_15', 'phone_15', 'email_12@email.com', 'created', '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.6ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`id` = 1  (1.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `visible` = FALSE, `visibility_cache_key` = 'something' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815140754000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.902500' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 87) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 85', 87, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.906679' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 88) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 86', 88, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.909977' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 89) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 87', 89, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.913117' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 90) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 88', 90, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:54.916391' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 91) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 89', 91, '2023-08-15 14:07:54', '2023-08-15 14:07:54')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 66', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 67', TRUE, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:07:54', '2023-08-15 14:07:54') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:54' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:55.011783' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 92) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 90', 92, '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:55.015364' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 93) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 91', 93, '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:55.018740' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 94) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 92', 94, '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:55.022446' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 95) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 93', 95, '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:55.025489' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 96) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 94', 96, '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.6ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:07:55', '2023-08-15 14:07:55')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_16', 'fn_16', 'ln_16', 'phone_16', 'email_13@email.com', 'created', '2023-08-15 14:07:55', '2023-08-15 14:07:55') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815140755000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:55' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.5ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-08-15 14:07:56' WHERE `fe_answers`.`id` = 1  (2.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.206635' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 97) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 95', 97, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 97) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.212306' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 97) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 68', TRUE, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:56' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:07:56', 'relationship_17', 'fn_17', 'ln_17', 'phone_17', 'email_14@email.com', 'started', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`id` = 1  (12.3ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (0.8ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.8ms) COMMIT Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.446879' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 98) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 96', 98, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 98) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.453673' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 98) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 69', TRUE, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:56' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.5ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:07:56', 'relationship_18', 'fn_18', 'ln_18', 'phone_18', 'email_15@email.com', 'started', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (1.0ms) COMMIT Fe::ReferenceSheet Update (1.7ms) UPDATE `fe_references` SET `status` = 'created' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.4ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c7be045f431fa355fa25bdc40b281659' LIMIT 1 Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `access_key` = 'c7be045f431fa355fa25bdc40b281659', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (17.3ms) COMMIT  (1.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (16.0ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.692894' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 99) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 97', 99, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 99) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.698633' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 99) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 70', TRUE, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:56' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (2.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:07:56', 'relationship_19', 'fn_19', 'ln_19', 'phone_19', 'email_16@email.com', 'started', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::EmailTemplate Create (2.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.9ms) COMMIT Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.5ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (12.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.903381' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 100) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 98', 100, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 100) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:56.908945' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 100) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 71', TRUE, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:56', '2023-08-15 14:07:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:56' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:07:56', 'relationship_20', 'fn_20', 'ln_20', 'phone_20', 'email_17@email.com', 'started', '2023-08-15 14:07:56', '2023-08-15 14:07:56', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:56' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.6ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:07:56', '2023-08-15 14:07:56')  (0.7ms) COMMIT Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'dd0bffe0fab8dc13e769748afeb6b3e9' LIMIT 1 Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'dd0bffe0fab8dc13e769748afeb6b3e9', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (50.7ms) TRUNCATE TABLE `fe_email_templates`  (9.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.154316' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 101) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 99', 101, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 101) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.159902' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 101) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (5.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 72', TRUE, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (4.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:57' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:07:57', '2023-08-15 14:07:57', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:07:57', 'relationship_21', 'fn_21', 'ln_21', 'phone_21', 'email_18@email.com', 'started', '2023-08-15 14:07:57', '2023-08-15 14:07:57', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`id` = 1  (11.3ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (5.4ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c0bb258300ea7b728d909be9ec084066' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'c0bb258300ea7b728d909be9ec084066', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.380655' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 102) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 100', 102, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.385267' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 103) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 101', 103, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.388890' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 104) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 102', 104, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.392079' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 105) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 103', 105, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.395272' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 106) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 104', 106, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:57', '2023-08-15 14:07:57', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:57' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (2.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:57' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_22', 'fn_22', 'ln_22', 'phone_22', 'email_19@email.com', 'created', '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.4ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.640264' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 107) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 105', 107, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.644649' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 108) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 106', 108, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.647989' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 109) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 107', 109, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.651134' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 110) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 108', 110, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.654358' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 111) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 109', 111, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (2.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:57' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:07:57', '2023-08-15 14:07:57', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:57' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 3, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:57' WHERE `fe_pages`.`id` = 4  (1.4ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:57', '2023-08-15 14:07:57')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (39.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_23', 'fn_23', 'ln_23', 'phone_23', 'email_20@email.com', 'created', '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:07:57' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (15.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (9.5ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.966627' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 112) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 110', 112, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.970715' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 113) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 111', 113, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.974367' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 114) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 112', 114, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.977825' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 115) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 113', 115, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:57.981118' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 116) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 114', 116, '2023-08-15 14:07:57', '2023-08-15 14:07:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:57', '2023-08-15 14:07:57', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:07:57', '2023-08-15 14:07:57') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:58' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:58' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_24', 'fn_24', 'ln_24', 'phone_24', 'email_21@email.com', 'created', '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.9ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:07:58' WHERE `fe_references`.`id` = 1  (6.1ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.234665' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 117) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 115', 117, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.238845' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 118) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 116', 118, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.242458' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 119) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 117', 119, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.245953' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 120) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 118', 120, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.249378' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 121) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 119', 121, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:58' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:07:58', '2023-08-15 14:07:58', 1) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:07:58' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:58' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_25', 'fn_25', 'ln_25', 'phone_25', 'email_22@email.com', 'created', '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:07:58' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (12.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 73', TRUE, '2023-08-15 14:07:58', '2023-08-15 14:07:58', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.783515' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 122) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 120', 122, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 122) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.787958' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 122) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:58' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 74', TRUE, '2023-08-15 14:07:58', '2023-08-15 14:07:58', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.958282' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 123) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 121', 123, '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 123) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:58.962945' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 123) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:58', '2023-08-15 14:07:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:58' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (2.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:07:58', '2023-08-15 14:07:58')  (0.9ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (11.7ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:07:59', '2023-08-15 14:07:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:07:59', '2023-08-15 14:07:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-08-15 14:07:59', '2023-08-15 14:07:59')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:07:59', '2023-08-15 14:07:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 75', TRUE, '2023-08-15 14:07:59', '2023-08-15 14:07:59') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:07:59.398232' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 124) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 122', 124, '2023-08-15 14:07:59', '2023-08-15 14:07:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:07:59', '2023-08-15 14:07:59') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:07:59' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.7ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (5.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (12.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (16.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.7ms) Completed 200 OK in 651ms (Views: 629.4ms | ActiveRecord: 5.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:00.215299' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 125) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 123', 125, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 76', TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:00.227738' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 126) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 124', 126, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (0.9ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (4.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (6.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (6.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 9.9ms | ActiveRecord: 5.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (37.4ms) TRUNCATE TABLE `fe_references`  (12.9ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:00.462948' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 127) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 125', 127, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 77', TRUE, TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 78', TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 79', TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.2ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (3.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (7.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (7.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 11.1ms | ActiveRecord: 5.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:00.706098' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 128) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 126', 128, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 80', TRUE, TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 81', TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 82', TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:00', '2023-08-15 14:08:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:00' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.1ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [2 times] (4.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (7.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (7.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 12.0ms | ActiveRecord: 6.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:00.958140' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 127', 129, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (1.3ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:00.968663' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 130) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 128', 130, TRUE, '2023-08-15 14:08:00', '2023-08-15 14:08:00')  (0.8ms) COMMIT Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application Fe::Application Load (0.8ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (5.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 15.3ms | ActiveRecord: 1.9ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:01', '2023-08-15 14:08:01') Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.7ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (8.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (8.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:01.449954' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 131) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 129', 131, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (3.9ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Element Load (1.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb [1 times] (3.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (9.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (1.1ms)  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (3.2ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGridWithTotal') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_submit_to.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (41.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 76ms (Views: 48.9ms | ActiveRecord: 9.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Rendering html template within layouts/fe/application Rendered html template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 2.1ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.5ms) TRUNCATE TABLE `fe_addresses`  (10.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Person Create (2.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (2.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:01', '2023-08-15 14:08:01')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Redirected to http://test.host/referrer Completed 302 Found in 5ms (ActiveRecord: 2.1ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (34.4ms) TRUNCATE TABLE `fe_addresses`  (50.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (17.7ms) TRUNCATE TABLE `fe_references`  (12.6ms) TRUNCATE TABLE `fe_users`  (9.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:02.129665' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 132) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 130', 132, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 83', TRUE, '2023-08-15 14:08:02', '2023-08-15 14:08:02') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:02' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:02', '2023-08-15 14:08:02') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:02' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:02' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_26', 'fn_26', 'ln_26', 'phone_26', 'email_23@email.com', 'created', '2023-08-15 14:08:02', '2023-08-15 14:08:02') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:08:02' WHERE `fe_references`.`id` = 1  (12.1ms) COMMIT  (0.4ms) BEGIN Fe::EmailTemplate Create (2.2ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (0.5ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"email"=>"email@email.com", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "relationship"=>"rel", "title"=>"title"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'e4d3c5d254204cbc4994d04616953618' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = 'e4d3c5d254204cbc4994d04616953618' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.2ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 271.4ms Sent mail to email@email.com (16.4ms) Date: Tue, 15 Aug 2023 10:08:02 -0400 From: info@example.com To: email@email.com Message-ID: <64db86c277b5e_4e83fc749440ebc9584f@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms Sent mail to email@email.com (1.3ms) Date: Tue, 15 Aug 2023 10:08:02 -0400 From: info@example.com To: email@email.com Message-ID: <64db86c279f19_4e83fc749440ebc9594e@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = '2023-08-15 14:08:02' WHERE `fe_references`.`id` = 1  (12.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (1.1ms) Completed 200 OK in 452ms (Views: 68.9ms | ActiveRecord: 17.0ms) Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (47.2ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (2.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:02.829995' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 133) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 131', 133, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:02.835751' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 134) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 132', 134, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:02.839061' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 135) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 133', 135, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:02.842306' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 136) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 134', 136, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:02.845608' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 137) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 135', 137, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will show the next element if the answer is yes', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:02', '2023-08-15 14:08:02', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:02', '2023-08-15 14:08:02') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:02' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that is made visible by the previous element', TRUE, '2023-08-15 14:08:02', '2023-08-15 14:08:02') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:08:02', '2023-08-15 14:08:02') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:02' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.4ms) COMMIT Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:08:02', '2023-08-15 14:08:02')  (12.1ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.6ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.5ms) UPDATE `fe_answers` SET `value` = 'yes' WHERE `fe_answers`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_answers`  (9.3ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:04.013470' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 138) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 136', 138, '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 84', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:04' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 85', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 86', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:04' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 87', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.6ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:04.215851' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 139) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (1, 'Label Page 137', 139, '2023-08-15 14:08:04', '2023-08-15 14:08:04', '2,1')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 88', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 89', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:04.368676' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 140) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 138', 140, '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.8ms) COMMIT Fe::Element Load (2.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:04.508622' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 141) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 139', 141, '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.4ms) COMMIT Fe::Element Load (2.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.2ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:04.651040' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 142) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 140', 142, '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 90', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 91', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04', 1, 'Fe::Element', 'asdf') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:04' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:04' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGridWithTotal Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::QuestionGridWithTotal', 'grid', 'Label Element 92', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'short', 'Label Element 93', TRUE, '2023-08-15 14:08:04', '2023-08-15 14:08:04') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.8ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'asdf', '2023-08-15 14:08:04', '2023-08-15 14:08:04')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (1.0ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'something else' WHERE `fe_answers`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:05.011347' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 143) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 141', 143, '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 94', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:05' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:05.175579' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 144) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 142', 144, '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 95', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.4ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:05' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 96', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.5ms) BEGIN Fe::Section Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 97', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (13.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (9.2ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (51.9ms) TRUNCATE TABLE `fe_people`  (8.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:05.418026' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 145) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 143', 145, '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'section', 'Label Element 98', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:05' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (20.0ms) TRUNCATE TABLE `fe_answers`  (11.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:05.584630' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 146) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 144', 146, '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 99', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:05' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 100', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (1.0ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:05.760306' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 147) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 145', 147, '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 101', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:05' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 102', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 103', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:05' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 104', TRUE, '2023-08-15 14:08:05', '2023-08-15 14:08:05') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (8.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:05.971377' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 146', 148, '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:05.975506' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 146', 148, '2023-08-15 14:08:05', '2023-08-15 14:08:05')  (0.7ms) COMMIT Fe::Element Load (3.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:06.116273' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 149) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 147', 149, TRUE, '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:06.252950' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 150) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 148', 150, '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.7ms) COMMIT Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:06.394145' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 149', 151, '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 105', TRUE, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:06' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.2ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:08:06.420997' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:06' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:06.560125' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 152) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 150', 152, '2023-08-15 14:08:06', '2023-08-15 14:08:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGridWithTotal Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'grid', 'Label Element 106', TRUE, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:08:06.572401' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 1) Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:06' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 107', TRUE, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 108', TRUE, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:08:06.611249' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 2) Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:06' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 109', TRUE, '2023-08-15 14:08:06', '2023-08-15 14:08:06') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (14.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.533517' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 153) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 151', 153, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.538162' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 154) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 152', 154, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.541645' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 155) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 153', 155, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.544899' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 156) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 154', 156, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.548341' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 157) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 155', 157, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (5.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 110', TRUE, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:07' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 111', TRUE, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:07' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.619245' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 158) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 156', 158, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.622852' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 159) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 157', 159, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.625911' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 160) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 158', 160, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.628835' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 161) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 159', 161, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.631880' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 162) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 160', 162, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (11.6ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (2.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.780308' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 163) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 161', 163, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (9.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.795868' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 164) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 162', 164, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (43.2ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.843875' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 165) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 163', 165, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (16.8ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.867762' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 166) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 164', 166, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.874338' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 167) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 165', 167, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 112', TRUE, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:07' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 113', TRUE, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:07', '2023-08-15 14:08:07') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:07' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:07' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (5.3ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.939428' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 168) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 166', 168, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.942792' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 169) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 167', 169, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.945900' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 170) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 168', 170, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.949047' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 171) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 169', 171, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:07.952290' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 172) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 170', 172, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:07', '2023-08-15 14:08:07')  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.089572' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 173) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 171', 173, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.094333' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 174) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 172', 174, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.098032' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 175) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 173', 175, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.101359' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 176) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 174', 176, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.104553' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 177) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 175', 177, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 114', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 115', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.162674' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 178) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 176', 178, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.165903' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 179) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 177', 179, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.168915' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 180) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 178', 180, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.172004' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 181) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 179', 181, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.174870' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 182) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 180', 182, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.311652' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 183) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 181', 183, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.316550' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 184) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 182', 184, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.320045' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 185) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 183', 185, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.323036' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 186) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 184', 186, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.326139' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 187) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 185', 187, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 116', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 117', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.380439' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 188) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 186', 188, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.383715' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 189) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 187', 189, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.386778' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 190) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 188', 190, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.389836' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 191) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 189', 191, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.392885' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 192) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 190', 192, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.530282' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 193) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 191', 193, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.534823' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 194) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 192', 194, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.538369' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 195) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 193', 195, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.541978' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 196) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 194', 196, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.545068' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 197) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 195', 197, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 118', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 119', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.611619' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 198) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 196', 198, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.614792' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 199) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 197', 199, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.617883' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 200) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 198', 200, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.621020' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 201) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 199', 201, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.624334' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 202) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 200', 202, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 120', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (11.7ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.8ms) TRUNCATE TABLE `fe_addresses`  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.846027' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 203) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 201', 203, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.850664' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 204) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 202', 204, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.854253' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 205) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 203', 205, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.857549' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 206) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 204', 206, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.860889' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 207) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 205', 207, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 121', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 122', TRUE, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:08' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:08' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.921340' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 208) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 206', 208, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.924572' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 209) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 207', 209, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.927747' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 210) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 208', 210, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.930855' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 211) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 209', 211, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:08.934126' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 212) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 210', 212, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:08', '2023-08-15 14:08:08')  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.072318' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 213) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 211', 213, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.076359' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 214) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 212', 214, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.079927' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 215) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 213', 215, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.083273' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 216) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 214', 216, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.086497' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 217) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 215', 217, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 123', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 124', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.150056' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 218) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 216', 218, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.153024' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 219) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 217', 219, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.156142' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 220) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 218', 220, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.159286' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 221) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 219', 221, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.162387' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 222) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 220', 222, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.170258' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 223) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 221', 223, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.173576' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 224) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 222', 224, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.176714' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 225) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 223', 225, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.179863' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 226) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 224', 226, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.183111' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 227) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 225', 227, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09', 3) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 12  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Person Create (1.3ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (1.2ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.596825' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 228) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 226', 228, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.601419' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 229) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 227', 229, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.605001' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 230) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 228', 230, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.608247' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 231) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 229', 231, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.611505' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 232) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 230', 232, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 125', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 126', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:09' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.678703' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 233) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 231', 233, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.682165' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 234) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 232', 234, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.685688' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 235) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 233', 235, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.688834' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 236) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 234', 236, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.691683' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 237) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 235', 237, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.699489' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 238) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 236', 238, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.702685' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 239) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 237', 239, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.705674' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 240) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 238', 240, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.708758' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 241) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 239', 241, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:09.711955' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 242) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 240', 242, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09', 11) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:08:09', '2023-08-15 14:08:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:09' WHERE `fe_pages`.`id` = 12  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.4ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:08:09', '2023-08-15 14:08:09')  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.114047' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 243) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 241', 243, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.118492' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 244) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 242', 244, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.122102' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 245) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 243', 245, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.125298' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 246) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 244', 246, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.128588' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 247) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 245', 247, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 127', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:10' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:10' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:10' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 128', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:10' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.184957' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 248) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 246', 248, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.188144' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 249) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 247', 249, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.191331' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 250) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 248', 250, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.194682' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 251) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 249', 251, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.197902' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 252) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 250', 252, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.206170' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 253) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 251', 253, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.209178' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 254) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 252', 254, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.212122' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 255) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 253', 255, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.215097' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 256) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 254', 256, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:10.217999' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 257) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 255', 257, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:10' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:10' WHERE `fe_pages`.`id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:10' WHERE `fe_pages`.`id` = 11  (1.4ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:10' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:08:10', '2023-08-15 14:08:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:10' WHERE `fe_pages`.`id` = 12  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.4ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:08:10', '2023-08-15 14:08:10')  (0.4ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (13.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (5.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (5.7ms) TRUNCATE TABLE `fe_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 129', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:11', '2023-08-15 14:08:11', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.151829' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 256', 258, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 258) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.156864' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 258) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:11' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.0ms) TRUNCATE TABLE `fe_addresses`  (6.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.0ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 130', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:11', '2023-08-15 14:08:11', '') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.328794' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 259) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 257', 259, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 259) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.333620' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 259) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:11' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (8.6ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 131', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:11', '2023-08-15 14:08:11', 'a; b\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.509430' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 260) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 258', 260, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 260) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.513862' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 260) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:11' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (12.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 132', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:11', '2023-08-15 14:08:11', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.689406' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 261) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 259', 261, '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 261) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:11.694067' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 261) Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:11', '2023-08-15 14:08:11') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:11' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:08:11', '2023-08-15 14:08:11')  (0.7ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (8.4ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (11.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.0ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (8.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:14.035288' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 262) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 260', 262, '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.5ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (9.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:14.276590' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 263) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 261', 263, '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.7ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (9.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (2.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:14.545097' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 264) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 262', 264, '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'choice 1', '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.4ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:14.810261' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 265) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 263', 265, '2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:08:14', '2023-08-15 14:08:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:14' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:14', '2023-08-15 14:08:14')  (0.6ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:08:14', '2023-08-15 14:08:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (10.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.036657' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 266) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 264', 266, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 2', '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.277732' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 267) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 265', 267, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, '', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) COMMIT  (0.7ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.511584' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 268) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 266', 268, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.741618' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 269) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 267', 269, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.746134' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 270) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 268', 270, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.749548' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 271) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 269', 271, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.752650' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 272) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 270', 272, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:15.755727' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 273) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 271', 273, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL1', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:15' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL2', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', 1) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'LVL3 (GRID)', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', 2) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::ChoiceField', 'yes-no', 'LVL4', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'EL (LVL5)', TRUE, '2023-08-15 14:08:15', '2023-08-15 14:08:15', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.5ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.2ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'yes', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 4, 'yes', '2023-08-15 14:08:15', '2023-08-15 14:08:15')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 2  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (10.3ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.221704' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 274) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 272', 274, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.226198' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 275) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 273', 275, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.229689' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 276) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 274', 276, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.236219' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 277) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 275', 277, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.241023' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 278) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 276', 278, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.9ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:16', '2023-08-15 14:08:16', 5, 'Fe::Page') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:16', '2023-08-15 14:08:16') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:16' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (12.2ms) TRUNCATE TABLE `fe_conditions`  (51.2ms) TRUNCATE TABLE `fe_elements`  (13.2ms) TRUNCATE TABLE `fe_email_templates`  (10.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.458077' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 279) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 277', 279, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.462831' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 280) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 278', 280, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.466113' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 281) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 279', 281, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.469262' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 282) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 280', 282, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.472322' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 283) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 281', 283, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (7.5ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) BEGIN Fe::ChoiceField Create (3.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:16', '2023-08-15 14:08:16', 5, 'Fe::Page') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:16', '2023-08-15 14:08:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:16' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 2 WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 2)  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `number` = 3 WHERE `fe_pages`.`id` = 3  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 3)  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 4  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.526613' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 4) AND (`fe_pages`.`number` >= 1) AND (`fe_pages`.`number` < 282)  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 4 WHERE `fe_pages`.`id` = 5  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 4) Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.533609' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 5) AND (`fe_pages`.`number` >= 4) AND (`fe_pages`.`number` < 283)  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.671586' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 284) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 282', 284, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.676018' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 285) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 283', 285, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.679782' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 286) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 284', 286, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.683085' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 287) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 285', 287, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.686178' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 288) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 286', 288, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the enclosed element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:16', '2023-08-15 14:08:16', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:16', '2023-08-15 14:08:16') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:16' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the enclosing element', TRUE, '2023-08-15 14:08:16', '2023-08-15 14:08:16', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.6ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:08:16', '2023-08-15 14:08:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:16' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.7ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (13.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.914152' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 289) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 287', 289, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.918568' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 290) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 288', 290, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.921782' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 291) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 289', 291, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.925041' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 292) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 290', 292, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:16.928246' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 293) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 291', 293, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:16', '2023-08-15 14:08:16', 5, 'Fe::Page', 'yes') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:16', '2023-08-15 14:08:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:16' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:08:16', '2023-08-15 14:08:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:08:16', '2023-08-15 14:08:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:16' WHERE `fe_pages`.`id` = 5  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:16', '2023-08-15 14:08:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:16', '2023-08-15 14:08:16')  (43.5ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.8ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.6ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.3ms) BEGIN  (0.2ms) COMMIT Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (26.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (56.9ms) TRUNCATE TABLE `fe_addresses`  (11.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (17.4ms) TRUNCATE TABLE `fe_page_elements`  (10.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.302395' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 294) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 292', 294, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.307119' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 295) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 293', 295, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.310302' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 296) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 294', 296, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.313518' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 297) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 295', 297, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.316830' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 298) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 296', 298, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:17', '2023-08-15 14:08:17', 5, 'Fe::Page', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:17', '2023-08-15 14:08:17') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:17' WHERE `fe_pages`.`id` = 4  (0.4ms) COMMIT Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:08:17', '2023-08-15 14:08:17') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:08:17', '2023-08-15 14:08:17') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:17' WHERE `fe_pages`.`id` = 5  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.6ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 1  (1.3ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.559879' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 299) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 297', 299, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.564198' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 300) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 298', 300, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.567394' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 301) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 299', 301, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.570405' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 302) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 300', 302, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:17.573404' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 303) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 301', 303, '2023-08-15 14:08:17', '2023-08-15 14:08:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:17', '2023-08-15 14:08:17', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:17', '2023-08-15 14:08:17') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:17' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:08:17', '2023-08-15 14:08:17') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:08:17', '2023-08-15 14:08:17') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:17' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (8.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-08-15 14:08:18', '2023-08-15 14:08:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:18.516812' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 304) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 302', 304, '2023-08-15 14:08:18', '2023-08-15 14:08:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:18.521097' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 305) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 303', 305, '2023-08-15 14:08:18', '2023-08-15 14:08:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:18.524673' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 306) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 304', 306, '2023-08-15 14:08:18', '2023-08-15 14:08:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:18.527779' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 307) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 305', 307, '2023-08-15 14:08:18', '2023-08-15 14:08:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:18.530766' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 308) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 306', 308, '2023-08-15 14:08:18', '2023-08-15 14:08:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:18', '2023-08-15 14:08:18', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:18' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved', TRUE, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:18' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved to become hidden', TRUE, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 3, 3, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:18' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.4ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:08:18.615238' WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:18' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 133', TRUE, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:18' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 134', TRUE, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 135', TRUE, '2023-08-15 14:08:18', '2023-08-15 14:08:18') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT Fe::Question Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 136', TRUE, TRUE, '2023-08-15 14:08:19', '2023-08-15 14:08:19', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (9.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 137', TRUE, TRUE, '2023-08-15 14:08:19', '2023-08-15 14:08:19', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (5.9ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 138', TRUE, TRUE, '2023-08-15 14:08:19', '2023-08-15 14:08:19', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.6ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (9.1ms) TRUNCATE TABLE `fe_email_templates`  (9.9ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.6ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 139', TRUE, '2023-08-15 14:08:19', '2023-08-15 14:08:19') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 140', TRUE, '2023-08-15 14:08:19', '2023-08-15 14:08:19', 'test') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 141', TRUE, '2023-08-15 14:08:19', '2023-08-15 14:08:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:19.754632' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 309) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 307', 309, '2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:19', '2023-08-15 14:08:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:19' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:19', '2023-08-15 14:08:19') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:19' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:19', '2023-08-15 14:08:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:19' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'nomatch', '2023-08-15 14:08:19', '2023-08-15 14:08:19')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 142', TRUE, '2023-08-15 14:08:19', '2023-08-15 14:08:19') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 143', TRUE, 'a 1 2', '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 144', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 145', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 146', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 147', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (36.4ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (11.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 148', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 149', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 150', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 151', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.2ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (8.4ms) TRUNCATE TABLE `fe_question_sheets`  (11.7ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 152', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 153', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 154', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 155', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.0ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 156', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 157', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 158', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 159', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:20' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.9ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid conditional visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:20', '2023-08-15 14:08:20', 2, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (58.3ms) TRUNCATE TABLE `fe_addresses`  (10.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (14.0ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 160', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 161', TRUE, 0, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 162', TRUE, 1, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:21.222944' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 310) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 308', 310, '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:21' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.3ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.4ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 162', TRUE, 2, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 163', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 164', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 165', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:21.414602' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 311) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 309', 311, '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:21' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:21' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 165', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 166', TRUE, TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:21', '2023-08-15 14:08:21')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:21.761336' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 312) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 310', 312, '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 167', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 168', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (12.5ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (2.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:21.953501' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 313) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 311', 313, '2023-08-15 14:08:21', '2023-08-15 14:08:21')  (5.7ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Create (3.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 169', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 170', TRUE, '2023-08-15 14:08:21', '2023-08-15 14:08:21') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 171', TRUE, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.154055' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 314) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 312', 314, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.159736' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 315) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 313', 315, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 2  (1.3ms) COMMIT Fe::Page Update (1.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Update (1.3ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 172', TRUE, TRUE, '2023-08-15 14:08:22', '2023-08-15 14:08:22', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 173', TRUE, TRUE, '2023-08-15 14:08:22', '2023-08-15 14:08:22', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.355944' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 316) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 314', 316, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.359472' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 317) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 315', 317, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.362803' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 318) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 316', 318, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.366205' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 319) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 317', 319, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.369459' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 320) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 318', 320, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.379124' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 321) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 319', 321, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.385965' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 322) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 320', 322, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.389480' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 323) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 321', 323, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.392613' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 324) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 322', 324, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.395465' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 325) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 323', 325, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 6  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 6  (0.8ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 174', TRUE, TRUE, '2023-08-15 14:08:22', '2023-08-15 14:08:22', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 175', TRUE, TRUE, '2023-08-15 14:08:22', '2023-08-15 14:08:22', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.599492' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 326) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 324', 326, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.602918' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 327) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 325', 327, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.606302' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 328) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 326', 328, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.609356' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 329) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 327', 329, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.612383' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 330) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 328', 330, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.622023' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 331) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 329', 331, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.625126' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 332) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 330', 332, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.628173' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 333) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 331', 333, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.631274' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 334) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 332', 334, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.634147' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 335) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 333', 335, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 6  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 6  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.679098' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 336) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 334', 336, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.682381' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 337) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 335', 337, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.685391' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 338) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 336', 338, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.688532' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 339) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 337', 339, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.691668' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 340) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 338', 340, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (1.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 176', TRUE, TRUE, '2023-08-15 14:08:22', '2023-08-15 14:08:22', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 177', TRUE, TRUE, '2023-08-15 14:08:22', '2023-08-15 14:08:22', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.863578' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 341) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 339', 341, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.867792' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 342) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 340', 342, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.871203' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 343) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 341', 343, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.874215' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 344) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 342', 344, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.877401' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 345) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 343', 345, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.886352' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 346) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 344', 346, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.889365' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 347) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 345', 347, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.892302' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 348) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 346', 348, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.895471' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 349) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 347', 349, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:22.898887' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 350) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 348', 350, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:22', '2023-08-15 14:08:22')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 6  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:08:22', '2023-08-15 14:08:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:22' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'match' WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 178', TRUE, TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 179', TRUE, TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.104620' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 349', 351, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.108101' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 352) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 350', 352, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.111274' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 353) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 351', 353, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.114569' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 354) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 352', 354, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.117976' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 355) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 353', 355, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.127843' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 356) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 354', 356, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.131630' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 357) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 355', 357, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.135221' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 358) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 356', 358, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.138571' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 359) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 357', 359, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.141752' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 360) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 358', 360, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:23' WHERE `fe_pages`.`id` = 6  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:23' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.188494' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 361) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 359', 361, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 180', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 181', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 182', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.347351' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 362) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 360', 362, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:23' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:23' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:23' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.3ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.537022' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 363) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 361', 363, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.541545' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 364) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 362', 364, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.544808' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 365) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 363', 365, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.548117' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 366) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 364', 366, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.551443' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 367) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 365', 367, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 183', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:23' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.740564' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 368) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 366', 368, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.744621' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 369) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 367', 369, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.748089' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 370) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 368', 370, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.751275' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 371) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 369', 371, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:23.754424' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 372) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 370', 372, '2023-08-15 14:08:23', '2023-08-15 14:08:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 184', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:23' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (1.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 185', TRUE, '2023-08-15 14:08:23', '2023-08-15 14:08:23', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (11.4ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (13.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (8.6ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 186', TRUE, '2023-08-15 14:08:24', '2023-08-15 14:08:24', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `content_translations`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 187', '1\r\n2', TRUE, '2023-08-15 14:08:24', '2023-08-15 14:08:24', '---\nfr: \'\'\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Paragraph Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'abc', '2023-08-15 14:08:24', '2023-08-15 14:08:24') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Paragraph Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'Lorem ipsum...', '2023-08-15 14:08:24', '2023-08-15 14:08:24') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:24', '2023-08-15 14:08:24')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::DateField Create (5.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:08:24', '2023-08-15 14:08:24') Fe::Page Load (3.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:08:24 UTC', '2023-08-15 14:08:24', '2023-08-15 14:08:24')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:24', '2023-08-15 14:08:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:08:24', '2023-08-15 14:08:24') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-08-15 14:08:24', '2023-08-15 14:08:24')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:25', '2023-08-15 14:08:25')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:08:25', '2023-08-15 14:08:25') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-08-15 14:08:25', '2023-08-15 14:08:25')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_answers`  (10.4ms) TRUNCATE TABLE `fe_applications`  (12.4ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"content"=>"Content", "name"=>"Name", "subject"=>"Subject"}}  (0.2ms) BEGIN Fe::EmailTemplate Create (0.7ms) INSERT INTO `fe_email_templates` (`name`, `content`, `subject`, `created_at`, `updated_at`) VALUES ('Name', 'Content', 'Subject', '2023-08-15 14:08:25', '2023-08-15 14:08:25')  (1.0ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.9ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-08-15 14:08:25', '2023-08-15 14:08:25')  (0.7ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin (1.6ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (3.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin (17.9ms) Completed 200 OK in 26ms (Views: 21.4ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.4ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:08:26', '2023-08-15 14:08:26')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (31.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (12.7ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:08:26', '2023-08-15 14:08:26')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.2ms) TRUNCATE TABLE `fe_addresses`  (10.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:08:26', '2023-08-15 14:08:26')  (0.4ms) COMMIT Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:08:26', '2023-08-15 14:08:26')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:08:26', '2023-08-15 14:08:26')  (0.4ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.7ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:08:26', '2023-08-15 14:08:26')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:27.143922' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 373) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 371', 373, '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.7ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (4.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (12.2ms) Completed 200 OK in 22ms (Views: 9.8ms | ActiveRecord: 3.6ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', TRUE, '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = FALSE ORDER BY label Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = TRUE ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin (4.7ms) Completed 200 OK in 17ms (Views: 8.4ms | ActiveRecord: 1.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (9.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:27.458069' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 374) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 372', 374, '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:27.462619' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 375) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 373', 375, '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.4ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.8ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb [2 times] (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (5.2ms) Fe::Element Load (4.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (8.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin (27.3ms) Completed 200 OK in 38ms (Views: 26.5ms | ActiveRecord: 5.3ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', TRUE, '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = FALSE WHERE `fe_question_sheets`.`id` = 1  (0.6ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (9.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.6ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161 - COPY', '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.6ms) COMMIT Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 2.5ms)  (0.7ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-08-15 14:08:27', '2023-08-15 14:08:27')  (0.7ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = TRUE WHERE `fe_question_sheets`.`id` = 1  (0.6ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (48.0ms) TRUNCATE TABLE `fe_email_templates`  (10.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (19.5ms) TRUNCATE TABLE `fe_answers`  (11.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 188', TRUE, 'test', '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.630575' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 376) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 374', 376, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.633963' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 377) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 375', 377, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.637405' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 378) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 376', 378, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.640825' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 379) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 377', 379, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.644043' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 380) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 378', 380, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:28' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 189', TRUE, '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:28' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1  (0.2ms) ROLLBACK  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 190', TRUE, 'test', '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.837247' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 381) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 379', 381, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.841980' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 382) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 380', 382, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.845559' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 383) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 381', 383, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.848964' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 384) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 382', 384, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.852367' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 385) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 383', 385, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:28' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 191', TRUE, '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.885249' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 386) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 384', 386, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (47.2ms) COMMIT  (0.5ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.938782' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 387) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 385', 387, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (1.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.946328' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 388) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 386', 388, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.951193' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 389) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 387', 389, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:08:28.954820' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 390) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 388', 390, '2023-08-15 14:08:28', '2023-08-15 14:08:28')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:08:28', '2023-08-15 14:08:28') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:08:28' WHERE `fe_pages`.`id` = 6  (1.7ms) COMMIT  (0.4ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1 Fe::TextField Update (0.5ms) UPDATE `fe_elements` SET `slug` = 'test' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (18.5ms) TRUNCATE TABLE `fe_conditions`  (52.2ms) TRUNCATE TABLE `fe_elements`  (9.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 192', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (4.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 193', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 194', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (16.6ms) COMMIT  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (12.3ms) TRUNCATE TABLE `fe_addresses`  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 195', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 196', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:08:29', '2023-08-15 14:08:29')  (0.7ms) COMMIT  (0.4ms) BEGIN Fe::AttachmentField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'section', 'Label Element 197', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `attachment_file_name`, `created_at`, `updated_at`) VALUES (1, 3, 'test_file', 'test_file', '2023-08-15 14:08:29', '2023-08-15 14:08:29')  (0.8ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Destroy (0.4ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.4ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 198', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 199', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.6ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 200', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 201', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 202', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 203', TRUE, '2023-08-15 14:08:29', '2023-08-15 14:08:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-08-15 14:08:30', '2023-08-15 14:08:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:08:30', '2023-08-15 14:08:30', 1) Fe::Page Load (3.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:08:30' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 'relationship_27', 'fn_27', 'ln_27', 'phone_27', 'email_24@email.com', 'created', '2023-08-15 14:08:30', '2023-08-15 14:08:30', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:08:30' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT  (0.4ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', '2023-08-15 14:08:30', '2023-08-15 14:08:30')  (3.9ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Update (0.7ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:08:30' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', '2023-08-15 14:08:30', '2023-08-15 14:08:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Update (0.3ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-08-15 14:08:30' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:08:30', '2023-08-15 14:08:30') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:30' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:08:30', '2023-08-15 14:08:30') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:08:30' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483  (0.2ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:29', '2023-08-15 14:27:29')  (3.1ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-08-15 14:27:29', '2023-08-15 14:27:29')  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:29.867390' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 1) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 1', 1, '2023-08-15 14:27:29', '2023-08-15 14:27:29')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:29', '2023-08-15 14:27:29')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (3.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 1', TRUE, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (6.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:30' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (2.1ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (2.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (8.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (20.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (26.6ms) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (81.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (126.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (133.8ms) Completed 200 OK in 227ms (Views: 201.3ms | ActiveRecord: 7.7ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.9ms) select table_name from information_schema.views where table_schema = 'fe_test'  (26.1ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:30.536591' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 2) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 2', 2, '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 2', TRUE, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:30' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1) LIMIT 1  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.9ms) Completed 200 OK in 30ms (Views: 6.9ms | ActiveRecord: 2.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (20.5ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:30.754551' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 3) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 3', 3, '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 3', TRUE, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:30' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (7.4ms) Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (16.2ms) Completed 200 OK in 31ms (Views: 16.0ms | ActiveRecord: 2.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:30.946091' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 4) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 4', 4, '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:30', '2023-08-15 14:27:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 4', TRUE, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:30', '2023-08-15 14:27:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:30' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (62.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (126.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (196.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (62.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (131.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (199.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (388.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (709.0ms) Completed 200 OK in 789ms (Views: 770.7ms | ActiveRecord: 5.9ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (14.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:31', '2023-08-15 14:27:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-08-15 14:27:31', '2023-08-15 14:27:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:31.891071' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 5) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 5', 5, '2023-08-15 14:27:31', '2023-08-15 14:27:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:31', '2023-08-15 14:27:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 5', TRUE, '2023-08-15 14:27:31', '2023-08-15 14:27:31') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:31', '2023-08-15 14:27:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:27:31.922449' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Condition Update All (1.0ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 Fe::Condition Update All (0.2ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 Fe::TextField Destroy (0.3ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`id` = 1  (0.6ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (9.1ms) Completed 200 OK in 39ms (Views: 9.6ms | ActiveRecord: 12.4ms) Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:32.091801' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 6) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 6', 6, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 6', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:27:32.143879' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (2.0ms) Completed 200 OK in 26ms (Views: 2.6ms | ActiveRecord: 9.8ms) Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:32.293448' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 7) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 7', 7, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:32.299987' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 8) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 8', 8, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 7', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:27:32.343609' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.9ms) Completed 200 OK in 21ms (Views: 2.4ms | ActiveRecord: 7.9ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (2.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:32.507807' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 9) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 9', 9, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 8', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 9', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (0.9ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = FALSE AND `fe_elements`.`share` = TRUE AND `fe_elements`.`style` = 'style' ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (67.3ms) Completed 500 Internal Server Error in 141ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (15.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (14.8ms) TRUNCATE TABLE `fe_elements`  (10.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:32.837491' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 10) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 10', 10, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 10', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 11', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 12', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 13', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 14', TRUE, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:32', '2023-08-15 14:27:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:32' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.2ms) BEGIN Fe::TextField Update (0.9ms) UPDATE `fe_elements` SET `position` = 2 WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 1 WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.3ms) Completed 200 OK in 35ms (Views: 0.7ms | ActiveRecord: 10.2ms)  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.6ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:33.141714' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 11) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 11', 11, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 15', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 16', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 17', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 18', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 19', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::QuestionGrid Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Update (0.4ms) UPDATE `fe_page_elements` SET `position` = 2 WHERE `fe_page_elements`.`id` = 1  (0.4ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 2) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:27:33.229872' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 1) AND (`fe_page_elements`.`position` > 1) AND (`fe_page_elements`.`position` <= 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Update (0.5ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.6ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.6ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:27:33.253519' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Update (0.8ms) UPDATE `fe_page_elements` SET `position` = 1 WHERE `fe_page_elements`.`id` = 3  (0.7ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 63ms (Views: 1.0ms | ActiveRecord: 26.3ms) Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:33.427451' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 12) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 12', 12, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.4ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (10.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.2ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (21.5ms) Completed 200 OK in 56ms (Views: 21.2ms | ActiveRecord: 8.5ms)  (1.3ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:33.632909' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 13) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 13', 13, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.7ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.5ms) Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM `fe_elements`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:33.783183' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 14) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 14', 14, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:33', '2023-08-15 14:27:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 20', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 20', TRUE, '2023-08-15 14:27:33', '2023-08-15 14:27:33', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:27:33', '2023-08-15 14:27:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:33' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Update (0.6ms) UPDATE `fe_elements` SET `share` = FALSE WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.5ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (3.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.1ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (8.7ms) Completed 200 OK in 46ms (Views: 8.3ms | ActiveRecord: 10.0ms) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.7ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-08-15 14:27:34', '2023-08-15 14:27:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:34.768761' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 15) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 15', 15, '2023-08-15 14:27:34', '2023-08-15 14:27:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 21', TRUE, '2023-08-15 14:27:34', '2023-08-15 14:27:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:34', '2023-08-15 14:27:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:34' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 22', TRUE, '2023-08-15 14:27:34', '2023-08-15 14:27:34') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 23', TRUE, '2023-08-15 14:27:34', '2023-08-15 14:27:34') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:27:34', '2023-08-15 14:27:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:34' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 24', TRUE, '2023-08-15 14:27:34', '2023-08-15 14:27:34') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:35.010002' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 16) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 16', 16, '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 16) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:35.015783' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 16) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (2.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (5.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:35.151806' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 17) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 17', 17, '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 25', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 26', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 27', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 28', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:35.225857' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 18) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 18', 18, '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 29', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 5, 1, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::TextField', 'short', 'Label Element 30', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::Section', 'section', 'Label Element 31', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 32', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 8, 2, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (10.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (54.7ms) TRUNCATE TABLE `fe_conditions`  (17.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:35.491486' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 19', 19, '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (4.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 33', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 34', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:35.540730' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 20) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 20', 20, '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 35', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 3, 1, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 36', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 4, 2, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT Fe::Page Update (1.4ms) UPDATE `fe_pages` SET `all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (80.2ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:35.798147' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 21) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 21', 21, '2023-08-15 14:27:35', '2023-08-15 14:27:35')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 37', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 38', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 39', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:35' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 40', TRUE, '2023-08-15 14:27:35', '2023-08-15 14:27:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:36.016945' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 22) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (2, 'Label Page 22', 22, '2023-08-15 14:27:36', '2023-08-15 14:27:36', '')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:36.023569' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 23) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (3, 'Label Page 23', 23, '2023-08-15 14:27:36', '2023-08-15 14:27:36', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 41', TRUE, '2023-08-15 14:27:36', '2023-08-15 14:27:36') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.4ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:27:36', '2023-08-15 14:27:36') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:36' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 22) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:36.053712' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 22) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 23) AND (`fe_pages`.id != 2) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:36.057610' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 2) AND (`fe_pages`.`number` >= 23) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (8.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:36.191353' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 24', 24, '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (5.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (12.6ms) Completed 200 OK in 27ms (Views: 10.4ms | ActiveRecord: 3.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (0.7ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:36.378987' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 25) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 25', 25, '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 42', TRUE, '2023-08-15 14:27:36', '2023-08-15 14:27:36') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:36', '2023-08-15 14:27:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:36' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_1', 'fn_1', 'ln_1', 'phone_1', 'email_1@email.com', 'created', '2023-08-15 14:27:36', '2023-08-15 14:27:36') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (3.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:27:36' WHERE `fe_references`.`id` = 1  (6.8ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (0.8ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (0.3ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-08-15 14:27:36', '2023-08-15 14:27:36')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"email"=>"email@email.com", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "relationship"=>"rel", "title"=>"title"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'e82c08ed8839b96eee71a3fa862fcd72' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = 'e82c08ed8839b96eee71a3fa862fcd72' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 222.9ms Sent mail to email@email.com (18.0ms) Date: Tue, 15 Aug 2023 10:27:36 -0400 From: info@example.com To: email@email.com Message-ID: <64db8b58be3f1_19e33ffd3a840e8c583c2@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms Sent mail to email@email.com (1.3ms) Date: Tue, 15 Aug 2023 10:27:36 -0400 From: info@example.com To: email@email.com Message-ID: <64db8b58bffdd_19e33ffd3a840e8c58483@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = '2023-08-15 14:27:36' WHERE `fe_references`.`id` = 1  (11.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (1.0ms) Completed 200 OK in 408ms (Views: 66.6ms | ActiveRecord: 15.7ms) Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.7ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:37.082500' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 26) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 26', 26, '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:37.086934' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 27) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 27', 27, TRUE, '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.5ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:37.231375' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 28) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 28', 28, '2023-08-15 14:27:37', '2023-08-15 14:27:37')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (3.4ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb [1 times] (4.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (974.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (993.2ms) Completed 500 Internal Server Error in 1019ms (ActiveRecord: 8.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Redirected to http://test.host/referrer Completed 302 Found in 6ms (ActiveRecord: 2.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.5ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (3.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Rendering html template within layouts/fe/application Rendered html template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 18.5ms | ActiveRecord: 4.3ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (19.3ms) TRUNCATE TABLE `fe_addresses`  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) BEGIN Fe::Application Create (0.5ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:38', '2023-08-15 14:27:38') Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.4ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 10ms (ActiveRecord: 1.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.4ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:38', '2023-08-15 14:27:38')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (3.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 1.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 43', TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:39.099360' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 29) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 29', 29, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.2ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (7.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (14.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (18.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 37.9ms | ActiveRecord: 5.1ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:39.325401' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 30) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 30', 30, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 44', TRUE, TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 45', TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 46', TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (2.4ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (4.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (5.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.2ms) Completed 200 OK in 23ms (Views: 9.7ms | ActiveRecord: 5.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:39.569318' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 31) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 31', 31, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 47', TRUE, TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 48', TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 49', TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [2 times] (4.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (6.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (7.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.2ms) Completed 200 OK in 29ms (Views: 14.5ms | ActiveRecord: 5.5ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:39.818341' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 32) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 32', 32, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 50', TRUE, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:39.832415' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 33) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 33', 33, '2023-08-15 14:27:39', '2023-08-15 14:27:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:39', '2023-08-15 14:27:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:39' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (5.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (5.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 12.2ms | ActiveRecord: 4.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', TRUE, '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.7ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = FALSE WHERE `fe_question_sheets`.`id` = 1  (0.5ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', TRUE, '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin Fe::QuestionSheet Load (0.9ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = FALSE ORDER BY label Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = TRUE ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin (6.4ms) Completed 200 OK in 24ms (Views: 17.5ms | ActiveRecord: 1.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.8ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = TRUE WHERE `fe_question_sheets`.`id` = 1  (0.5ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:40.466409' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 34) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 34', 34, '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:40.471566' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 35) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 35', 35, '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.8ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb [2 times] (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (5.2ms) Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (5.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin (23.5ms) Completed 200 OK in 49ms (Views: 38.7ms | ActiveRecord: 3.7ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.5ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42 - COPY', '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.6ms) COMMIT Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 2.6ms)  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::DateField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:27:40', '2023-08-15 14:27:40') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:40 UTC', '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.8ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (11.4ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:27:40', '2023-08-15 14:27:40') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-08-15 14:27:40', '2023-08-15 14:27:40')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:41', '2023-08-15 14:27:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-08-15 14:27:41', '2023-08-15 14:27:41')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-08-15 14:27:41', '2023-08-15 14:27:41')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:41.748283' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 36) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 36', 36, '2023-08-15 14:27:41', '2023-08-15 14:27:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:41' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:41' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:41' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:41' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:41', '2023-08-15 14:27:41')  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.2ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-08-15 14:27:41', '2023-08-15 14:27:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:41.966444' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 37) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 37', 37, '2023-08-15 14:27:41', '2023-08-15 14:27:41')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:27:41', '2023-08-15 14:27:41', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:41', '2023-08-15 14:27:41') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:41' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (13.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (44.4ms) TRUNCATE TABLE `fe_references`  (9.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:42.220676' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 38) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 38', 38, '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:42.447268' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 39) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 39', 39, '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (1.4ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.5ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.8ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.5ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'choice 1', '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:42.749403' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 40) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 40', 40, '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:42' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:42.973281' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 41) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 41', 41, '2023-08-15 14:27:42', '2023-08-15 14:27:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:27:42', '2023-08-15 14:27:42', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, '', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) COMMIT  (1.1ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.192320' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 42) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 42', 42, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 2', '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: def01d7c-aa9d-450a-ad11-620b29d7cb3b) to Test(default) with arguments: #>, [1] Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.570809' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 43) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 43', 43, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.575517' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 44) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 44', 44, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.578811' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 45) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 45', 45, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.582433' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 46) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 46', 46, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.585577' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 47) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 47', 47, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 51', TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 52', TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.653065' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 48) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 48', 48, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.656094' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 49) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 49', 49, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.659143' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 50) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 50', 50, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.662408' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 51) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 51', 51, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.665684' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 52) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 52', 52, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 53', TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (6.6ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 54', TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.822516' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 53) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 53', 53, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 53) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.827140' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 53) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:43', '2023-08-15 14:27:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:43' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 55', TRUE, '2023-08-15 14:27:43', '2023-08-15 14:27:43', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:43.995980' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 54) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 54', 54, '2023-08-15 14:27:43', '2023-08-15 14:27:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 54) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:44.000541' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 54) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:44', '2023-08-15 14:27:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:44' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:27:44', '2023-08-15 14:27:44')  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (6.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (10.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (8.7ms) TRUNCATE TABLE `fe_users`  (8.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:27:44', '2023-08-15 14:27:44')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (37.6ms) TRUNCATE TABLE `fe_addresses`  (11.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (31.6ms) TRUNCATE TABLE `fe_conditions`  (33.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:27:44', '2023-08-15 14:27:44')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.7ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.7ms) TRUNCATE TABLE `fe_addresses`  (10.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:27:44', '2023-08-15 14:27:44')  (0.9ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.3ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:27:44', '2023-08-15 14:27:44')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.5ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_2', 'fn_2', 'ln_2', 'phone_2', 'email_2@email.com', 'created', '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.8ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.6ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (8.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceSheet Create (2.1ms) INSERT INTO `fe_references` (`relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES ('relationship_3', 'fn_3', 'ln_3', 'phone_3', 'email_3@email.com', 'created', '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:27:45', '2023-08-15 14:27:45', 1) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:27:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 1, 'relationship_4', 'fn_4', 'ln_4', 'phone_4', 'email_4@email.com', 'created', '2023-08-15 14:27:45', '2023-08-15 14:27:45', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:45' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (14.6ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:45', '2023-08-15 14:27:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.5ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_5', 'fn_5', 'ln_5', 'phone_5', 'email_5@email.com', 'created', '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.5ms) COMMIT Fe::Person Load (0.7ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.141178' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 55) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 55', 55, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.145446' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 56) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 56', 56, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.153573' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 57) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 57', 57, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.159429' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 58) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 58', 58, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.163752' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 59) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 59', 59, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 56', TRUE, '2023-08-15 14:27:46', '2023-08-15 14:27:46') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:46', '2023-08-15 14:27:46', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:27:46', '2023-08-15 14:27:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.5ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:27:46', '2023-08-15 14:27:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:46' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 57', TRUE, '2023-08-15 14:27:46', '2023-08-15 14:27:46') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:46' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:46', '2023-08-15 14:27:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:46' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.261868' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 60) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 60', 60, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.265134' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 61) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 61', 61, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.268114' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 62) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 62', 62, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.270957' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 63) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 63', 63, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:46.274004' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 64) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 64', 64, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:27:46', '2023-08-15 14:27:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_6', 'fn_6', 'ln_6', 'phone_6', 'email_6@email.com', 'created', '2023-08-15 14:27:46', '2023-08-15 14:27:46') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815142746000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:46' WHERE `fe_references`.`id` = 1  (6.7ms) COMMIT Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.7ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-08-15 14:27:47' WHERE `fe_answers`.`id` = 1  (2.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.484441' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 65) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 65', 65, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.489604' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 66) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 66', 66, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.492842' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 67) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 67', 67, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.496186' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 68) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 68', 68, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.499458' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 69) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 69', 69, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 58', TRUE, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:47', '2023-08-15 14:27:47', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (1.0ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:47' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:47' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 59', TRUE, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:47' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.586958' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 70) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 70', 70, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.590278' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 71) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 71', 71, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.593328' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 72) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 72', 72, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.596663' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 73) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 73', 73, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.599821' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 74) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 74', 74, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_7', 'fn_7', 'ln_7', 'phone_7', 'email_7@email.com', 'created', '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815142747000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.784222' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 75) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 75', 75, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.789265' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 76) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 76', 76, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.792825' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 77) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 77', 77, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.796177' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 78) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 78', 78, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.799479' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 79) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 79', 79, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 60', TRUE, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:47', '2023-08-15 14:27:47', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:47' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:47' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 61', TRUE, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (32.0ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:47' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.938641' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 80) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 80', 80, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.941993' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 81) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 81', 81, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.946838' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 82) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 82', 82, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.951906' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 83) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 83', 83, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:47.954927' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 84) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 84', 84, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_8', 'fn_8', 'ln_8', 'phone_8', 'email_8@email.com', 'created', '2023-08-15 14:27:47', '2023-08-15 14:27:47') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:47' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `visible` = FALSE WHERE `fe_references`.`id` = 1  (0.2ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:27:47', '2023-08-15 14:27:47')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (2.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815142747000000', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.136527' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 85) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 85', 85, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.141528' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 86) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 86', 86, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.145270' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 87) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 87', 87, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.149104' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 88) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 88', 88, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.152480' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 89) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 89', 89, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 62', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:48' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:48' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 63', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:48' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.231852' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 90) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 90', 90, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.235219' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 91) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 91', 91, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.238555' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 92) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 92', 92, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.241806' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 93) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 93', 93, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.246230' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 94) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 94', 94, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_9', 'fn_9', 'ln_9', 'phone_9', 'email_9@email.com', 'created', '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `visible` = FALSE, `visibility_cache_key` = 'something' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.1ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815142748000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.441255' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 95) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 95', 95, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.445757' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 96) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 96', 96, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.449148' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 97) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 97', 97, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.452616' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 98) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 98', 98, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.455923' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 99) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 99', 99, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:48' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:48' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_10', 'fn_10', 'ln_10', 'phone_10', 'email_10@email.com', 'created', '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.6ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.707854' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 100) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 100', 100, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.712905' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 101) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 101', 101, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.716446' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 102) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 102', 102, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.723800' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 103) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 103', 103, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.727423' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 104) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 104', 104, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:48' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:48' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_11', 'fn_11', 'ln_11', 'phone_11', 'email_11@email.com', 'created', '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (2.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.9ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:48' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (11.2ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.967517' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 105) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 105', 105, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.973737' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 106) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 106', 106, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.978432' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 107) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 107', 107, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.981843' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 108) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 108', 108, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:48.984964' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 109) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 109', 109, '2023-08-15 14:27:48', '2023-08-15 14:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:48', '2023-08-15 14:27:48', 'Fe::Element', 'yes') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:27:48', '2023-08-15 14:27:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_12', 'fn_12', 'ln_12', 'phone_12', 'email_12@email.com', 'created', '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`id` = 1  (11.8ms) COMMIT Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (1.2ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.240242' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 110) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 110', 110, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.245087' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 111) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 111', 111, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.248375' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 112) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 112', 112, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.251338' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 113) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 113', 113, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.254380' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 114) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 114', 114, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 4  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:27:49', '2023-08-15 14:27:49', 1) Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 3, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_13', 'fn_13', 'ln_13', 'phone_13', 'email_13@email.com', 'created', '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.9ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.512039' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 115) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 115', 115, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 115) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.517612' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 115) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 64', TRUE, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:27:49', '2023-08-15 14:27:49', 1) Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (2.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:27:49', 'relationship_14', 'fn_14', 'ln_14', 'phone_14', 'email_14@email.com', 'started', '2023-08-15 14:27:49', '2023-08-15 14:27:49', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.714090' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 116) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 116', 116, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 116) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.719829' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 116) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 65', TRUE, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:27:49', '2023-08-15 14:27:49', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:27:49', 'relationship_15', 'fn_15', 'ln_15', 'phone_15', 'email_15@email.com', 'started', '2023-08-15 14:27:49', '2023-08-15 14:27:49', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'created' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '689d73ac609f9a1e7d433ea50f3cbe78' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `access_key` = '689d73ac609f9a1e7d433ea50f3cbe78', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.916165' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 117) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 117', 117, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 117) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:49.921678' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 117) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 66', TRUE, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:49', '2023-08-15 14:27:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:49' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:27:49', '2023-08-15 14:27:49', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:27:49', 'relationship_16', 'fn_16', 'ln_16', 'phone_16', 'email_16@email.com', 'started', '2023-08-15 14:27:49', '2023-08-15 14:27:49', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:49' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.9ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:27:49', '2023-08-15 14:27:49')  (0.4ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (5.9ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (8.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:50.112812' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 118) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 118', 118, '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 118) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:50.118400' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 118) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 67', TRUE, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:50' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:27:50', '2023-08-15 14:27:50', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:27:50', 'relationship_17', 'fn_17', 'ln_17', 'phone_17', 'email_17@email.com', 'started', '2023-08-15 14:27:50', '2023-08-15 14:27:50', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (3.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (3.1ms) COMMIT  (0.3ms) BEGIN Fe::EmailTemplate Create (2.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.8ms) COMMIT Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'accd7bb223da4ce19f75ea5cfbb03c27' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'accd7bb223da4ce19f75ea5cfbb03c27', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:50.337719' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 119) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 119', 119, '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 119) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:50.343537' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 119) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 68', TRUE, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:50' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:27:50', '2023-08-15 14:27:50', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:27:50', 'relationship_18', 'fn_18', 'ln_18', 'phone_18', 'email_18@email.com', 'started', '2023-08-15 14:27:50', '2023-08-15 14:27:50', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '7b34fbbbc929444d6debfc238753cf1f' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = '7b34fbbbc929444d6debfc238753cf1f', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_answers`  (9.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.9ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'bbaaf2cd5299d0665340717bba1e2090' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '3fd763a94b630d49343f281ab091ba9c' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ecb2177b4689b06264a280b4b9e16fa4' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c75d437b6f25667a98637973c3c59f48' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '4b77cb4723c27142c2e902b881f8fe06' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '39179aef8517f50ef5c69740ec96514a' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'efc5b46e0d0d1347a91fc8cae4d41a29' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'd1255b5def45dabf007ad9bb3920a9a5' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '40cd621f357b9fca841754a2b2f270b9' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'd081b3896e916fe8b672b3a77fa02532' LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 69', TRUE, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_19', 'fn_19', 'ln_19', 'phone_19', 'email_19@email.com', 'created', '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (3.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`id` = 1  (11.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 70', TRUE, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 71', TRUE, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_20', 'fn_20', 'ln_20', 'phone_20', 'email_20@email.com', 'created', '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (2.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:50' WHERE `fe_references`.`id` = 1  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 72', TRUE, '2023-08-15 14:27:50', '2023-08-15 14:27:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'some text response', '2023-08-15 14:27:50', '2023-08-15 14:27:50')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.039471' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 120) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 120', 120, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.043661' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 121) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 121', 121, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.046939' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 122) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 122', 122, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.050034' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 123) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 123', 123, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.053146' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 124) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 124', 124, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:51' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_21', 'fn_21', 'ln_21', 'phone_21', 'email_21@email.com', 'created', '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (8.3ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (8.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.266181' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 125) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 125', 125, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.271222' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 126) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 126', 126, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.274581' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 127) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 127', 127, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.278136' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 128) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 128', 128, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.281539' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 129', 129, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', FALSE, '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_22', 'fn_22', 'ln_22', 'phone_22', 'email_22@email.com', 'created', '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.440560' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 130) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 130', 130, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.445083' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 131) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 131', 131, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.448416' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 132) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 132', 132, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.451706' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 133) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 133', 133, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:51.454729' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 134) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 134', 134, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:51', '2023-08-15 14:27:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:51' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_23', 'fn_23', 'ln_23', 'phone_23', 'email_23@email.com', 'created', '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:27:51' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Paragraph Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'abc', '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Paragraph Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'Lorem ipsum...', '2023-08-15 14:27:51', '2023-08-15 14:27:51') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (14.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-08-15 14:27:52', '2023-08-15 14:27:52')  (0.6ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin (1.7ms) Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"content"=>"Content", "name"=>"Name", "subject"=>"Subject"}}  (0.2ms) BEGIN Fe::EmailTemplate Create (0.7ms) INSERT INTO `fe_email_templates` (`name`, `content`, `subject`, `created_at`, `updated_at`) VALUES ('Name', 'Content', 'Subject', '2023-08-15 14:27:52', '2023-08-15 14:27:52')  (1.1ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 5ms (ActiveRecord: 2.0ms)  (0.9ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (9.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (2.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin (12.7ms) Completed 200 OK in 23ms (Views: 18.5ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (30.7ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.042250' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 135) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 135', 135, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.046371' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 136) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 136', 136, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.049503' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 137) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 137', 137, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.052834' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 138) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 138', 138, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.055944' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 139) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 139', 139, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 73', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.5ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 74', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.119159' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 140) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 140', 140, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.122450' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 141) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 141', 141, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.125577' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 142) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 142', 142, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.129005' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 143) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 143', 143, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.132204' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 144) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 144', 144, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (6.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.264196' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 145) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 145', 145, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.268302' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 146) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 146', 146, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.271875' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 147) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 147', 147, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.275015' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 148', 148, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.278223' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 149) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 149', 149, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 75', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 76', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.338169' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 150) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 150', 150, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.341519' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 151', 151, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.344508' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 152) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 152', 152, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.347515' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 153) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 153', 153, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.350459' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 154) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 154', 154, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.484567' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 155) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 155', 155, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.489090' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 156) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 156', 156, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.492508' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 157) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 157', 157, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.495783' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 158) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 158', 158, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.499004' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 159) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 159', 159, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 77', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 78', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.556708' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 160) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 160', 160, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.562834' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 161) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 161', 161, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.567338' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 162) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 162', 162, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.570890' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 163) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 163', 163, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.573898' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 164) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 164', 164, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.709103' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 165) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 165', 165, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.713227' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 166) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 166', 166, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.716473' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 167) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 167', 167, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.719858' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 168) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 168', 168, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.723085' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 169) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 169', 169, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 79', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 80', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.787120' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 170) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 170', 170, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (3.7ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.794484' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 171) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 171', 171, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.799658' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 172) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 172', 172, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.805785' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 173) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 173', 173, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.811037' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 174) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 174', 174, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.947284' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 175) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 175', 175, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.951546' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 176) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 176', 176, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.955209' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 177) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 177', 177, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.958537' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 178) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 178', 178, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:53.962992' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 179) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 179', 179, '2023-08-15 14:27:53', '2023-08-15 14:27:53')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 81', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:53' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 82', TRUE, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:53' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:53', '2023-08-15 14:27:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.021227' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 180) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 180', 180, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.024403' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 181) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 181', 181, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.027325' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 182) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 182', 182, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.030389' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 183) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 183', 183, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.033458' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 184) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 184', 184, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 83', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (11.4ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.3ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (11.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.253333' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 185) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 185', 185, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.257456' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 186) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 186', 186, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.260820' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 187) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 187', 187, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.264042' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 188) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 188', 188, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.267323' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 189) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 189', 189, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 84', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 85', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.325164' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 190) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 190', 190, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.328318' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 191) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 191', 191, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.331365' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 192) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 192', 192, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.334392' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 193) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 193', 193, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.337548' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 194) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 194', 194, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (40.0ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.518044' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 195) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 195', 195, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.522870' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 196) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 196', 196, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.526358' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 197) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 197', 197, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.529561' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 198) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 198', 198, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.532633' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 199) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 199', 199, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 86', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 87', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:54' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.586718' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 200) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 200', 200, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.589871' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 201) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 201', 201, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.592970' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 202) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 202', 202, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.596175' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 203) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 203', 203, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.599363' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 204) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 204', 204, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.607209' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 205) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 205', 205, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.610536' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 206) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 206', 206, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.613852' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 207) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 207', 207, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.623760' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 208) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 208', 208, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:54.629463' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 209) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 209', 209, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 11  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:27:54', '2023-08-15 14:27:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:54' WHERE `fe_pages`.`id` = 12  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Person Create (1.7ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.4ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.4ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:27:54', '2023-08-15 14:27:54')  (0.8ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (11.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.060278' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 210) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 210', 210, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.064470' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 211) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 211', 211, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.067934' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 212) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 212', 212, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.071112' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 213) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 213', 213, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.074100' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 214) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 214', 214, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 88', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 89', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.144496' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 215) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 215', 215, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.148077' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 216) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 216', 216, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.151405' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 217) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 217', 217, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.154969' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 218) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 218', 218, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.158380' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 219) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 219', 219, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.166465' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 220) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 220', 220, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.169758' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 221) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 221', 221, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.173160' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 222) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 222', 222, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.176375' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 223) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 223', 223, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.179478' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 224) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 224', 224, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (1.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 12  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Person Update (0.8ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.8ms) COMMIT Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (12.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.688358' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 225) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 225', 225, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.692803' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 226) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 226', 226, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.696073' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 227) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 227', 227, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.699770' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 228) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 228', 228, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.703075' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 229) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 229', 229, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 90', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 91', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:27:55' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.764216' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 230) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 230', 230, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.768276' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 231) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 231', 231, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.773281' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 232) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 232', 232, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.777795' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 233) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 233', 233, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.781733' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 234) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 234', 234, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.791187' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 235) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 235', 235, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.795479' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 236) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 236', 236, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.799580' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 237) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 237', 237, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.803806' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 238) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 238', 238, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:55.807495' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 239) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 239', 239, '2023-08-15 14:27:55', '2023-08-15 14:27:55')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55', 3) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (2.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:27:55', '2023-08-15 14:27:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:55' WHERE `fe_pages`.`id` = 12  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.4ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.3ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:56.206516' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 240) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 240', 240, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:56.210574' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 241) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 241', 241, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:56.213985' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 242) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 242', 242, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:56.217356' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 243) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 243', 243, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:56.220561' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 244) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 244', 244, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will show the next element if the answer is yes', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:27:56', '2023-08-15 14:27:56', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:27:56', '2023-08-15 14:27:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:56' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that is made visible by the previous element', TRUE, '2023-08-15 14:27:56', '2023-08-15 14:27:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:27:56', '2023-08-15 14:27:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:56' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:27:56', '2023-08-15 14:27:56')  (11.6ms) COMMIT Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'yes' WHERE `fe_answers`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.5ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (9.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (32.1ms) TRUNCATE TABLE `fe_conditions`  (35.0ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (13.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:57.415871' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 245) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 245', 245, '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 92', TRUE, '2023-08-15 14:27:57', '2023-08-15 14:27:57') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 93', TRUE, '2023-08-15 14:27:57', '2023-08-15 14:27:57', 1, 'Fe::Element', 'asdf') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:27:57', '2023-08-15 14:27:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:57' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:27:57', '2023-08-15 14:27:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:57' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGridWithTotal Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::QuestionGridWithTotal', 'grid', 'Label Element 94', TRUE, '2023-08-15 14:27:57', '2023-08-15 14:27:57') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'short', 'Label Element 95', TRUE, '2023-08-15 14:27:57', '2023-08-15 14:27:57') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.9ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'asdf', '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'something else' WHERE `fe_answers`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:57.767288' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 246) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 246', 246, TRUE, '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.8ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:57.904157' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 247) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 247', 247, '2023-08-15 14:27:57', '2023-08-15 14:27:57')  (0.5ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:58.042510' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 248) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 248', 248, '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 96', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:58' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 97', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 98', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:58' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 99', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:58.248764' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 249) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 249', 249, '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.7ms) COMMIT Fe::Element Load (2.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:58.386053' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 250) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (1, 'Label Page 250', 250, '2023-08-15 14:27:58', '2023-08-15 14:27:58', '2,1')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (4.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 100', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 101', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:58.537961' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 251) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 251', 251, '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGridWithTotal Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'grid', 'Label Element 102', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Update All (0.5ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:27:58.551817' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 1) Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:58' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 103', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 104', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.2ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:27:58.589105' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 2) Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:58' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 105', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.2ms) TRUNCATE TABLE `fe_addresses`  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:58.764557' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 252) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 252', 252, '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 106', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:58' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:58.917978' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 253) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 253', 253, '2023-08-15 14:27:58', '2023-08-15 14:27:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 107', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:58' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 108', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 109', TRUE, '2023-08-15 14:27:58', '2023-08-15 14:27:58') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:59.096376' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 254) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 254', 254, '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'section', 'Label Element 110', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.7ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:59' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (8.5ms) TRUNCATE TABLE `fe_email_templates`  (10.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:59.270001' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 255) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 255', 255, '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 111', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:59' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 112', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (6.5ms) TRUNCATE TABLE `phone_numbers`  (5.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:59.432157' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 256) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 256', 256, '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.4ms) COMMIT Fe::Element Load (3.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.9ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (9.2ms) TRUNCATE TABLE `fe_conditions`  (9.5ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.0ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:59.563383' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 257) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 257', 257, '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 113', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:59' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:27:59.590827' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:59' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:59.731832' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 258', 258, '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:59.736133' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 258', 258, '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.5ms) COMMIT Fe::Element Load (2.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:27:59.876249' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 259) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 259', 259, '2023-08-15 14:27:59', '2023-08-15 14:27:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 114', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:59' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 115', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 116', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:27:59' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 117', TRUE, '2023-08-15 14:27:59', '2023-08-15 14:27:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (11.7ms) COMMIT Fe::Page Update (6.8ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.5ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.103847' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 260) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 260', 260, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.108612' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 261) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 261', 261, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.111956' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 262) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 262', 262, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.115073' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 263) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 263', 263, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.118687' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 264) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 264', 264, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:00', '2023-08-15 14:28:00', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:00', '2023-08-15 14:28:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:00' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:28:00', '2023-08-15 14:28:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:28:00', '2023-08-15 14:28:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:00' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (8.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (39.6ms) TRUNCATE TABLE `fe_conditions`  (16.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.593601' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 265) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 265', 265, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.598128' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 266) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 266', 266, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.601745' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 267) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 267', 267, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.605007' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 268) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 268', 268, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.609428' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 269) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 269', 269, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the enclosed element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:00', '2023-08-15 14:28:00', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:00', '2023-08-15 14:28:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:00' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the enclosing element', TRUE, '2023-08-15 14:28:00', '2023-08-15 14:28:00', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:28:00', '2023-08-15 14:28:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:00' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.5ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.8ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.841309' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 270) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 270', 270, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.846280' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 271) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 271', 271, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.849475' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 272) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 272', 272, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.852623' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 273) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 273', 273, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:00.856057' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 274) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 274', 274, '2023-08-15 14:28:00', '2023-08-15 14:28:00')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:00', '2023-08-15 14:28:00', 5, 'Fe::Page') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:00', '2023-08-15 14:28:00') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:00' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.138571' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 275) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 275', 275, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.142979' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 276) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 276', 276, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.146562' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 277) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 277', 277, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.149675' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 278) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 278', 278, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.152960' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 279) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 279', 279, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01', 5, 'Fe::Page') Fe::Page Load (2.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 4  (1.3ms) COMMIT Fe::ChoiceField Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1)  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `number` = 2 WHERE `fe_pages`.`id` = 2  (0.5ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 2)  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `number` = 3 WHERE `fe_pages`.`id` = 3  (0.5ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 3)  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 4  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.211054' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 4) AND (`fe_pages`.`number` >= 1) AND (`fe_pages`.`number` < 278)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 4 WHERE `fe_pages`.`id` = 5  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 4) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.217999' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 5) AND (`fe_pages`.`number` >= 4) AND (`fe_pages`.`number` < 279)  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.353031' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 280) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 280', 280, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.357190' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 281) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 281', 281, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.360812' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 282) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 282', 282, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.364133' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 283) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 283', 283, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.367203' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 284) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 284', 284, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved to become hidden', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 3, 3, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:28:01.438526' WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_answers`  (10.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.601829' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 285) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 285', 285, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.605993' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 286) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 286', 286, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.609520' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 287) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 287', 287, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.612708' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 288) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 288', 288, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.615756' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 289) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 289', 289, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01', 5, 'Fe::Page', 'yes') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 5  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.5ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.849965' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 290) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 290', 290, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.854215' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 291) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 291', 291, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.857678' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 292) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 292', 292, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.860917' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 293) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 293', 293, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:01.864036' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 294) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 294', 294, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL1', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:01' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL2', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'LVL3 (GRID)', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01', 2) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::ChoiceField', 'yes-no', 'LVL4', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01') Fe::QuestionGrid Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'EL (LVL5)', TRUE, '2023-08-15 14:28:01', '2023-08-15 14:28:01', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.8ms) COMMIT  (0.5ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.5ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.2ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'yes', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 4, 'yes', '2023-08-15 14:28:01', '2023-08-15 14:28:01')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'no', `updated_at` = '2023-08-15 14:28:02' WHERE `fe_answers`.`id` = 2  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (6.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (9.4ms) TRUNCATE TABLE `fe_page_elements`  (8.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:02.694827' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 295) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 295', 295, '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:02.699456' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 296) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 296', 296, '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:02.702931' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 297) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 297', 297, '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:02.706039' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 298) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 298', 298, '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:02.709482' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 299) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 299', 299, '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:02', '2023-08-15 14:28:02', 5, 'Fe::Page', 'yes') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:02', '2023-08-15 14:28:02') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:02' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:28:02', '2023-08-15 14:28:02') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:28:02', '2023-08-15 14:28:02') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:02' WHERE `fe_pages`.`id` = 5  (14.8ms) COMMIT  (0.4ms) BEGIN Fe::Application Create (2.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:28:02', '2023-08-15 14:28:02')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 118', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:03' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 119', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 120', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT Fe::Question Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.252448' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 300) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 300', 300, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.257176' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 301) Fe::Page Create (0.6ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 301', 301, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.262134' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 302) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 302', 302, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.265568' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 303) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 303', 303, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.268658' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 304) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 304', 304, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 121', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:03' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.5ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.4ms) COMMIT Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.468055' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 305) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 305', 305, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.472560' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 306) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 306', 306, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.476369' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 307) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 307', 307, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.479735' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 308) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 308', 308, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:03.482815' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 309) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 309', 309, '2023-08-15 14:28:03', '2023-08-15 14:28:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 122', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:03' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03', 'Fe::Element') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (12.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (50.2ms) TRUNCATE TABLE `fe_applications`  (12.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (14.4ms) TRUNCATE TABLE `phone_numbers`  (11.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 123', TRUE, 'a 1 2', '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 124', TRUE, '2023-08-15 14:28:03', '2023-08-15 14:28:03') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 125', TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 126', TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 127', TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.059379' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 310) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 310', 310, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.8ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.1ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.7ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 128', TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 129', TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04', 'test') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 130', TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.299526' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 311) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 311', 311, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'nomatch', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 131', TRUE, TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 132', TRUE, TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.8ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.542299' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 312) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 312', 312, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.545532' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 313) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 313', 313, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.548814' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 314) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 314', 314, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.552152' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 315) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 315', 315, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.555425' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 316) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 316', 316, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.564772' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 317) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 317', 317, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.568009' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 318) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 318', 318, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.571029' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 319) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 319', 319, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.573956' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 320) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 320', 320, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.577162' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 321) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 321', 321, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.616538' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 322) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 322', 322, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.8ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 133', TRUE, TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 134', TRUE, TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.770006' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 323) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 323', 323, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.773761' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 324) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 324', 324, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.776846' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 325) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 325', 325, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.780083' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 326) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 326', 326, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.783370' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 327) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 327', 327, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.792624' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 328) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 328', 328, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.795726' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 329) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 329', 329, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.798948' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 330) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 330', 330, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.802095' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 331) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 331', 331, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:04.805254' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 332) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 332', 332, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:28:04', '2023-08-15 14:28:04')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 6  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.7ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:28:04', '2023-08-15 14:28:04') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:04' WHERE `fe_pages`.`id` = 6  (0.5ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'match' WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 135', TRUE, TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 136', TRUE, TRUE, '2023-08-15 14:28:04', '2023-08-15 14:28:04', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.016085' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 333) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 333', 333, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.019535' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 334) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 334', 334, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.022676' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 335) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 335', 335, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.025757' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 336) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 336', 336, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.028751' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 337) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 337', 337, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.037795' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 338) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 338', 338, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.041136' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 339) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 339', 339, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.044659' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 340) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 340', 340, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.047675' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 341) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 341', 341, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.050937' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 342) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 342', 342, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:28:05', '2023-08-15 14:28:05') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:05' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:28:05', '2023-08-15 14:28:05') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:05' WHERE `fe_pages`.`id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.096397' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 343) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 343', 343, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.100678' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 344) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 344', 344, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.103879' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 345) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 345', 345, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.106966' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 346) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 346', 346, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.110705' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 347) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 347', 347, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.8ms) COMMIT Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (8.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 137', TRUE, TRUE, '2023-08-15 14:28:05', '2023-08-15 14:28:05', TRUE) Fe::Page Load (3.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 138', TRUE, TRUE, '2023-08-15 14:28:05', '2023-08-15 14:28:05', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.291534' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 348) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 348', 348, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.295828' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 349) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 349', 349, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.299769' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 350) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 350', 350, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.303788' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 351', 351, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.307674' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 352) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 352', 352, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.319489' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 353) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 353', 353, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.323533' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 354) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 354', 354, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.328011' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 355) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 355', 355, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.332679' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 356) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 356', 356, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (19.2ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.358251' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 357) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 357', 357, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (10.8ms) COMMIT  (0.4ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (1.0ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:28:05', '2023-08-15 14:28:05') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:05' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:28:05', '2023-08-15 14:28:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:05' WHERE `fe_pages`.`id` = 6  (1.2ms) COMMIT Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (17.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 139', TRUE, TRUE, '2023-08-15 14:28:05', '2023-08-15 14:28:05', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (12.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 140', TRUE, TRUE, '2023-08-15 14:28:05', '2023-08-15 14:28:05', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 141', TRUE, TRUE, '2023-08-15 14:28:05', '2023-08-15 14:28:05', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (3.9ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 142', TRUE, '2023-08-15 14:28:05', '2023-08-15 14:28:05') Fe::Page Load (2.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.983434' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 358) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 358', 358, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:05.990627' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 359) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 359', 359, '2023-08-15 14:28:05', '2023-08-15 14:28:05')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:05', '2023-08-15 14:28:05') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:05' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT Fe::Page Update (1.3ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (8.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:06.163688' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 360) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 360', 360, '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 143', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 144', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:06.341324' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 361) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 361', 361, '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 145', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 146', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionGrid Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 147', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 148', TRUE, 0, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 149', TRUE, 1, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:06.556588' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 362) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 362', 362, '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.3ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 149', TRUE, 2, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.9ms) COMMIT Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 150', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 151', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 152', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:06.756250' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 363) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 363', 363, '2023-08-15 14:28:06', '2023-08-15 14:28:06')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 152', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:28:06', '2023-08-15 14:28:06') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:06' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ChoiceField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `content_translations`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 153', '1\r\n2', TRUE, '2023-08-15 14:28:06', '2023-08-15 14:28:06', '---\nfr: \'\'\n') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (54.8ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 154', TRUE, '2023-08-15 14:28:07', '2023-08-15 14:28:07', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (19.9ms) TRUNCATE TABLE `fe_addresses`  (10.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_answers`  (9.8ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (3.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 155', TRUE, '2023-08-15 14:28:07', '2023-08-15 14:28:07', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 156', TRUE, TRUE, '2023-08-15 14:28:07', '2023-08-15 14:28:07', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:07', '2023-08-15 14:28:07')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:07', '2023-08-15 14:28:07')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:28:07', '2023-08-15 14:28:07')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:07', '2023-08-15 14:28:07')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:28:07', '2023-08-15 14:28:07')  (0.6ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (195.3ms) TRUNCATE TABLE `fe_conditions`  (15.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (8.5ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (8.3ms) TRUNCATE TABLE `fe_question_sheets`  (20.9ms) TRUNCATE TABLE `fe_references`  (8.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 157', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (3.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 158', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 159', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 160', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (35.7ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (9.8ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 161', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 162', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 163', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 164', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (39.9ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 165', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 166', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 167', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 168', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 7, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid conditional visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 2, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.2ms) TRUNCATE TABLE `fe_addresses`  (11.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionGrid Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 169', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 170', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 171', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4) Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 172', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:08' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:08', '2023-08-15 14:28:08', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.9ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-08-15 14:28:08', '2023-08-15 14:28:08')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:08.978793' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 364) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 364', 364, '2023-08-15 14:28:08', '2023-08-15 14:28:08')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:08', '2023-08-15 14:28:08')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:08', '2023-08-15 14:28:08')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (4.6ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.4ms) Completed 500 Internal Server Error in 15ms (ActiveRecord: 7.2ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (5.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:09.136039' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 365) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 365', 365, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 173', TRUE, TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 174', TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 175', TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.4ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 2.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:09.350504' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 366) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 366', 366, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 176', TRUE, TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 177', TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 178', TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.3ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 2.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:09.568282' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 367) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 367', 367, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 179', TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:09' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_24', 'fn_24', 'ln_24', 'phone_24', 'initial@ref.com', 'created', '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"email"=>"email@reference.com", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "relationship"=>"roommate", "title"=>"A"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (3.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 77913364-72dd-47b3-bfe0-a2b1871660df) to Test(default) with arguments: #>, [1] Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '628b9589ae4270fb0e40f8ef7d9bb871' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = '628b9589ae4270fb0e40f8ef7d9bb871' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Update (0.4ms) UPDATE `fe_applications` SET `locale` = NULL WHERE `fe_applications`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (1.4ms) Completed 200 OK in 50ms (Views: 12.2ms | ActiveRecord: 12.2ms) Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:09.800914' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 368) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 368', 368, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 180', TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:09.827979' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 369) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 369, '2023-08-15 14:28:09', '2023-08-15 14:28:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 181', TRUE, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:09' WHERE `fe_pages`.`id` = 2  (1.5ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:28:09', '2023-08-15 14:28:09', 2) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (2.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:28:09' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_25', 'fn_25', 'ln_25', 'phone_25', 'initial@ref.com', 'created', '2023-08-15 14:28:09', '2023-08-15 14:28:09', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:28:09' WHERE `fe_references`.`id` = 1  (14.9ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"ref answer here"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.6ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'ref answer here', '2023-08-15 14:28:09', '2023-08-15 14:28:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 27742e6e-e1ed-4b17-a615-851323a634ee) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 6.9ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.7ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:10', '2023-08-15 14:28:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-08-15 14:28:10', '2023-08-15 14:28:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:10.072217' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 370) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 369', 370, '2023-08-15 14:28:10', '2023-08-15 14:28:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:10', '2023-08-15 14:28:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 182', TRUE, '2023-08-15 14:28:10', '2023-08-15 14:28:10') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:10', '2023-08-15 14:28:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:10' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-08-15 14:28:10', '2023-08-15 14:28:10')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:10.098567' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 371) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 371, '2023-08-15 14:28:10', '2023-08-15 14:28:10')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 183', TRUE, 'answer_sheet', 'email', '2023-08-15 14:28:10', '2023-08-15 14:28:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:28:10', '2023-08-15 14:28:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:10' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:28:10', '2023-08-15 14:28:10', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:28:10' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_26', 'fn_26', 'ln_26', 'phone_26', 'initial@ref.com', 'created', '2023-08-15 14:28:10', '2023-08-15 14:28:10', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:28:10' WHERE `fe_references`.`id` = 1  (12.1ms) COMMIT Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ce9a70cfea196bdfa84494211f38d2ab' LIMIT 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `access_key` = 'ce9a70cfea196bdfa84494211f38d2ab', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (6.1ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"a"=>"ce9a70cfea196bdfa84494211f38d2ab", "answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"other@email.com"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `email` = 'other@email.com' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.3ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 48bc802c-2a4f-4dc0-bbb5-86418b23039b) to Test(default) with arguments: #>, [2]  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.6ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.4ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.4ms) Completed 200 OK in 24ms (Views: 1.0ms | ActiveRecord: 7.5ms) Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.0ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (39.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.9ms) TRUNCATE TABLE `fe_answers`  (7.1ms) TRUNCATE TABLE `fe_applications`  (8.6ms) TRUNCATE TABLE `fe_conditions`  (10.0ms) TRUNCATE TABLE `fe_elements`  (6.2ms) TRUNCATE TABLE `fe_email_templates`  (6.9ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (5.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.2ms) TRUNCATE TABLE `fe_addresses`  (6.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (13.4ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (36.8ms) TRUNCATE TABLE `fe_references`  (9.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (49.2ms) TRUNCATE TABLE `users`  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.5ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (3.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 184', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:12', '2023-08-15 14:28:12', 'a;b') Fe::Page Load (2.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:12.562342' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 372) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 370', 372, '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 372) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:12.566981' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 372) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:12', '2023-08-15 14:28:12') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:12' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 185', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:12', '2023-08-15 14:28:12', 'a; b\n') Fe::Page Load (2.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:12.746108' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 373) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 371', 373, '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 373) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:12.750536' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 373) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:12', '2023-08-15 14:28:12') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:12' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.7ms) TRUNCATE TABLE `phone_numbers`  (8.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 186', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:12', '2023-08-15 14:28:12', '') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:12.927620' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 374) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 372', 374, '2023-08-15 14:28:12', '2023-08-15 14:28:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 374) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:12.932129' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 374) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:12', '2023-08-15 14:28:12') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:12' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT Fe::Answer Load (3.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (13.5ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (2.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 187', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:28:13', '2023-08-15 14:28:13', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:13.109482' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 375) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 373', 375, '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 375) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:13.114069' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 375) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:13', '2023-08-15 14:28:13') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:13' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (13.3ms) TRUNCATE TABLE `fe_references`  (10.3ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:28:13', '2023-08-15 14:28:13', 1) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:28:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 'relationship_27', 'fn_27', 'ln_27', 'phone_27', 'email_24@email.com', 'created', '2023-08-15 14:28:13', '2023-08-15 14:28:13', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:28:13' WHERE `fe_references`.`id` = 1  (11.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (5.9ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Update (0.7ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:28:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', '2023-08-15 14:28:13', '2023-08-15 14:28:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Update (0.3ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-08-15 14:28:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:28:13', '2023-08-15 14:28:13') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:28:13', '2023-08-15 14:28:13') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:28:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (53.7ms) TRUNCATE TABLE `fe_references`  (9.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (13.4ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 188', TRUE, 'test', '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.078895' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 376) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 374', 376, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.082148' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 377) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 375', 377, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.085481' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 378) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 376', 378, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.088645' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 379) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 377', 379, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.091824' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 380) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 378', 380, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.5ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:15' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 189', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.121883' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 381) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 379', 381, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.125215' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 382) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 380', 382, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.128816' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 383) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 381', 383, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.131961' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 384) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 382', 384, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.135072' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 385) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 383', 385, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:15' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `slug` = 'test' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 190', TRUE, 'test', '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.304865' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 386) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 384', 386, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.310679' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 387) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 385', 387, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.314990' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 388) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 386', 388, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.318330' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 389) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 387', 389, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:28:15.321535' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 390) Fe::Page Create (0.6ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 388', 390, '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:15' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 191', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:28:15' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 192', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 193', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 194', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (11.7ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (17.9ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 195', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 196', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::AttachmentField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'section', 'Label Element 197', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `attachment_file_name`, `created_at`, `updated_at`) VALUES (1, 3, 'test_file', 'test_file', '2023-08-15 14:28:15', '2023-08-15 14:28:15')  (0.8ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Destroy (0.4ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.5ms) TRUNCATE TABLE `phone_numbers`  (5.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 198', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 199', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 200', TRUE, '2023-08-15 14:28:15', '2023-08-15 14:28:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 201', TRUE, '2023-08-15 14:28:16', '2023-08-15 14:28:16') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 202', TRUE, '2023-08-15 14:28:16', '2023-08-15 14:28:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 203', TRUE, '2023-08-15 14:28:16', '2023-08-15 14:28:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) SET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) select table_name from information_schema.views where table_schema = 'fe_test'  (21.1ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.9ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.158611' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 1) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 1', 1, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.166841' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 2) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 2', 2, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.171007' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 3) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 3', 3, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.174363' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 4) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 4', 4, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.177668' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 5) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 5', 5, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::ChoiceField Create (1.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:18', '2023-08-15 14:31:18', 5, 'Fe::Page') Fe::Page Load (2.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:18', '2023-08-15 14:31:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:18' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.536043' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 6) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 6', 6, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.540280' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 7) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 7', 7, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.543338' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 8) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 8', 8, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.546478' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 9) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 9', 9, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.549744' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 10) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 10', 10, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:18', '2023-08-15 14:31:18', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:18', '2023-08-15 14:31:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:18' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:31:18', '2023-08-15 14:31:18') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:18', '2023-08-15 14:31:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:18' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.900010' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 11) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 11', 11, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.904385' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 12) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 12', 12, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.907728' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 13) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 13', 13, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.910920' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 14) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 14', 14, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.913963' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 15) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 15', 15, '2023-08-15 14:31:18', '2023-08-15 14:31:18')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:18', '2023-08-15 14:31:18', 5, 'Fe::Page') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:18', '2023-08-15 14:31:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:18' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1)  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 2 WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 2)  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `number` = 3 WHERE `fe_pages`.`id` = 3  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 3)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 4  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.954977' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 4) AND (`fe_pages`.`number` >= 1) AND (`fe_pages`.`number` < 14)  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 4 WHERE `fe_pages`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 4) Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:18.961775' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 5) AND (`fe_pages`.`number` >= 4) AND (`fe_pages`.`number` < 15)  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (9.3ms) TRUNCATE TABLE `fe_applications`  (12.5ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (9.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.607475' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 16) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 16', 16, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.611852' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 17) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 17', 17, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.615379' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 18) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 18', 18, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.618716' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 19', 19, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.621763' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 20) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 20', 20, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the enclosed element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:19', '2023-08-15 14:31:19', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.4ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:19', '2023-08-15 14:31:19') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:19' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the enclosing element', TRUE, '2023-08-15 14:31:19', '2023-08-15 14:31:19', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:19', '2023-08-15 14:31:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.2ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:19' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.7ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.8ms) COMMIT Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (1.1ms) COMMIT Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.893494' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 21) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 21', 21, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.897995' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 22) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 22', 22, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.901327' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 23) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 23', 23, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.904383' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 24', 24, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:19.907450' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 25) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 25', 25, '2023-08-15 14:31:19', '2023-08-15 14:31:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:19', '2023-08-15 14:31:19', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:19', '2023-08-15 14:31:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:19' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved', TRUE, '2023-08-15 14:31:19', '2023-08-15 14:31:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:19', '2023-08-15 14:31:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:19' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved to become hidden', TRUE, '2023-08-15 14:31:19', '2023-08-15 14:31:19') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 3, 3, '2023-08-15 14:31:19', '2023-08-15 14:31:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:19' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::TextField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:31:19.987202' WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:19' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (5.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.148289' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 26) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 26', 26, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.153268' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 27) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 27', 27, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.156780' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 28) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 28', 28, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.160313' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 29) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 29', 29, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.163503' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 30) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 30', 30, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL1', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:20' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL2', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20', 1) Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) BEGIN Fe::QuestionGrid Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'LVL3 (GRID)', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20', 2) Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::ChoiceField', 'yes-no', 'LVL4', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'EL (LVL5)', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.3ms) COMMIT Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'yes', '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 4, 'yes', '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.4ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 2  (1.3ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (8.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.670564' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 31) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 31', 31, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.674813' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 32) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 32', 32, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.678388' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 33) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 33', 33, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.681598' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 34) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 34', 34, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.684594' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 35) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 35', 35, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20', 5, 'Fe::Page', 'yes') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:20' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:20' WHERE `fe_pages`.`id` = 5  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.910194' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 36) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 36', 36, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.914329' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 37) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 37', 37, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.918103' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 38) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 38', 38, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.921594' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 39) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 39', 39, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:20.924651' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 40) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 40', 40, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20', 5, 'Fe::Page', 'yes') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:20' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:20' WHERE `fe_pages`.`id` = 5  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:20', '2023-08-15 14:31:20')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (1.1ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.9ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.284402' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 41) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 41', 41, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.288546' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 42) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 42', 42, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.291753' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 43) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 43', 43, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.294851' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 44) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 44', 44, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.298201' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 45) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 45', 45, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (4.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 1', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:21' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21', 'Fe::Element') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.509212' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 46) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 46', 46, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.515145' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 47) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 47', 47, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.518624' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 48) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 48', 48, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.521976' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 49) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 49', 49, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:21.525299' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 50) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 50', 50, '2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 2', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:21' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21', 'Fe::Element') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.9ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 3', TRUE, TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:21', '2023-08-15 14:31:21')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 4', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 5', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:21' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 6', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:21' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 7', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:21' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:21', '2023-08-15 14:31:21', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (34.9ms) TRUNCATE TABLE `fe_addresses`  (11.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 8', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 9', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 10', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 4) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 11', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.9ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 12', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 13', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 14', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 4) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 15', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid conditional visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 2, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.9ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.7ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 16', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 1, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 17', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 18', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 19', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:22' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (1.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (35.7ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-08-15 14:31:22', '2023-08-15 14:31:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:22.833408' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 51) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 51', 51, '2023-08-15 14:31:22', '2023-08-15 14:31:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 20', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:22' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 21', TRUE, '2023-08-15 14:31:22', '2023-08-15 14:31:22') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (1.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.9ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 22', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:23.024653' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 52) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 52', 52, '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:23.030408' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 53) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 53', 53, '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.1ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:23.212128' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 54) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 54', 54, '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 23', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 24', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 25', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 26', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 27', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:23.430480' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 55) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 55', 55, '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (13.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 28', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 29', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23', 'test') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 30', TRUE, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:23.916323' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 56) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 56', 56, '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:23', '2023-08-15 14:31:23') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:23' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'nomatch', '2023-08-15 14:31:23', '2023-08-15 14:31:23')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (13.1ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 31', TRUE, TRUE, '2023-08-15 14:31:24', '2023-08-15 14:31:24', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 32', TRUE, TRUE, '2023-08-15 14:31:24', '2023-08-15 14:31:24', TRUE) Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 33', TRUE, TRUE, '2023-08-15 14:31:24', '2023-08-15 14:31:24', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.6ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.9ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 34', TRUE, '2023-08-15 14:31:24', '2023-08-15 14:31:24', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 35', TRUE, '2023-08-15 14:31:24', '2023-08-15 14:31:24', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ChoiceField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `content_translations`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 36', '1\r\n2', TRUE, '2023-08-15 14:31:24', '2023-08-15 14:31:24', '---\nfr: \'\'\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (8.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 37', TRUE, '2023-08-15 14:31:24', '2023-08-15 14:31:24') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 38', TRUE, 0, '2023-08-15 14:31:24', '2023-08-15 14:31:24') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 39', TRUE, 1, '2023-08-15 14:31:24', '2023-08-15 14:31:24') Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-08-15 14:31:24', '2023-08-15 14:31:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:24.984279' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 57) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 57', 57, '2023-08-15 14:31:24', '2023-08-15 14:31:24')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:24', '2023-08-15 14:31:24') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:24' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.2ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 39', TRUE, 2, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 40', TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 41', TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 42', TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.173854' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 58) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 58', 58, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 42', TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 43', TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:25' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 44', TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 45', TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT Fe::Question Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 46', TRUE, TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25', TRUE) Fe::Page Load (4.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 47', TRUE, TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.5ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.568710' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 59) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 59', 59, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.571899' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 60) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 60', 60, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.575071' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 61) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 61', 61, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.578020' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 62) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 62', 62, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.581213' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 63) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 63', 63, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.590582' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 64) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 64', 64, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.593739' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 65) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 65', 65, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.596761' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 66) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 66', 66, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.599842' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 67) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 67', 67, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.602903' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 68) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 68', 68, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.643552' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 69) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 69', 69, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.5ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (47.2ms) TRUNCATE TABLE `fe_references`  (11.9ms) TRUNCATE TABLE `fe_users`  (9.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 48', TRUE, TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25', TRUE) Fe::Page Load (2.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 49', TRUE, TRUE, '2023-08-15 14:31:25', '2023-08-15 14:31:25', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.849435' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 70) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 70', 70, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.852613' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 71) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 71', 71, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.855600' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 72) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 72', 72, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.858636' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 73) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 73', 73, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.861882' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 74) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 74', 74, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.871338' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 75) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 75', 75, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.875897' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 76) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 76', 76, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.879678' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 77) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 77', 77, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.882965' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 78) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 78', 78, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (6.7ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.895002' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 79) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 79', 79, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 6  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:31:25', '2023-08-15 14:31:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:25' WHERE `fe_pages`.`id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.943612' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 80) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 80', 80, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.947113' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 81) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 81', 81, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.950476' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 82) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 82', 82, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.953806' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 83) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 83', 83, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:25.956852' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 84) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 84', 84, '2023-08-15 14:31:25', '2023-08-15 14:31:25')  (0.7ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 50', TRUE, TRUE, '2023-08-15 14:31:26', '2023-08-15 14:31:26', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 51', TRUE, TRUE, '2023-08-15 14:31:26', '2023-08-15 14:31:26', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.128887' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 85) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 85', 85, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.132074' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 86) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 86', 86, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.135065' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 87) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 87', 87, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.138461' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 88) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 88', 88, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.141603' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 89) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 89', 89, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.150329' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 90) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 90', 90, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.153210' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 91) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 91', 91, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.155922' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 92) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 92', 92, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.159167' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 93) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 93', 93, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.161972' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 94) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 94', 94, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:31:26', '2023-08-15 14:31:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:26' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:31:26', '2023-08-15 14:31:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:26' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 52', TRUE, TRUE, '2023-08-15 14:31:26', '2023-08-15 14:31:26', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 53', TRUE, TRUE, '2023-08-15 14:31:26', '2023-08-15 14:31:26', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.364381' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 95) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 95', 95, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.367388' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 96) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 96', 96, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.370607' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 97) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 97', 97, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.374342' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 98) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 98', 98, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.4ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.379511' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 99) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 99', 99, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.391658' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 100) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 100', 100, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.394731' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 101) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 101', 101, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.397885' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 102) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 102', 102, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.401052' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 103) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 103', 103, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:26.404419' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 104) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 104', 104, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:31:26', '2023-08-15 14:31:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:26' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:31:26', '2023-08-15 14:31:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:26' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'match' WHERE `fe_answers`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 54', TRUE, '2023-08-15 14:31:26', '2023-08-15 14:31:26') Fe::Page Load (4.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 55', TRUE, 'a 1 2', '2023-08-15 14:31:26', '2023-08-15 14:31:26') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::EmailTemplate Create (1.5ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-08-15 14:31:26', '2023-08-15 14:31:26')  (0.8ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin (2.2ms) Completed 200 OK in 527ms (Views: 521.0ms | ActiveRecord: 0.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.4ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (5.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin (14.5ms) Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"content"=>"Content", "name"=>"Name", "subject"=>"Subject"}}  (0.2ms) BEGIN Fe::EmailTemplate Create (0.8ms) INSERT INTO `fe_email_templates` (`name`, `content`, `subject`, `created_at`, `updated_at`) VALUES ('Name', 'Content', 'Subject', '2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.6ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.6ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.5ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 0a12faec-8107-4bd9-a780-701527c5c7a2) to Test(default) with arguments: #>, [1] Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:27.982558' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 105) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 105', 105, '2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:27.986613' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 106) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 106', 106, '2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:27.989812' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 107) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 107', 107, '2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:27.993059' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 108) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 108', 108, '2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:27.996339' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 109) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 109', 109, '2023-08-15 14:31:27', '2023-08-15 14:31:27')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 56', TRUE, '2023-08-15 14:31:28', '2023-08-15 14:31:28') Fe::Page Load (1.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:28', '2023-08-15 14:31:28') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:28' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 57', TRUE, '2023-08-15 14:31:28', '2023-08-15 14:31:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:28' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:28', '2023-08-15 14:31:28') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:28' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:28' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:28.058549' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 110) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 110', 110, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:28.061539' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 111) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 111', 111, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:28.064656' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 112) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 112', 112, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:28.067700' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 113) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 113', 113, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:28.070745' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 114) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 114', 114, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 58', TRUE, '2023-08-15 14:31:28', '2023-08-15 14:31:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (36.0ms) TRUNCATE TABLE `fe_people`  (11.2ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:28.248368' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 115) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 115', 115, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.8ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (5.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (1.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (21.9ms) Completed 200 OK in 103ms (Views: 91.8ms | ActiveRecord: 3.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.7ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = TRUE WHERE `fe_question_sheets`.`id` = 1  (0.7ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', TRUE, '2023-08-15 14:31:28', '2023-08-15 14:31:28')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = FALSE ORDER BY label Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = TRUE ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin (4.7ms) Completed 200 OK in 13ms (Views: 7.1ms | ActiveRecord: 1.2ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.7ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35 - COPY', '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.8ms) COMMIT Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 2.7ms)  (0.7ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (9.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', TRUE, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.4ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = FALSE WHERE `fe_question_sheets`.`id` = 1  (0.6ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:29.300094' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 116) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 116', 116, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:29.304505' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 117) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 117', 117, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.8ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb [2 times] (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (4.8ms) Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (4.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin (22.2ms) Completed 200 OK in 32ms (Views: 22.3ms | ActiveRecord: 3.7ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_answers`  (11.5ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:29.980442' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 118) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 118', 118, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:29.984571' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 119) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 119', 119, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:29.987987' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 120) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 120', 120, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:29.991093' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 121) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 121', 121, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:29.994313' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 122) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 122', 122, '2023-08-15 14:31:29', '2023-08-15 14:31:29')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will show the next element if the answer is yes', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:29', '2023-08-15 14:31:29', 'Fe::Element', 'yes') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:30' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that is made visible by the previous element', TRUE, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:30' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (2.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.2ms) COMMIT Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (2.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'yes' WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.0ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:30.620516' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 123) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 123', 123, TRUE, '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.7ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (10.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:30.757865' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 124) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 124', 124, '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (3.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 59', TRUE, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 60', TRUE, '2023-08-15 14:31:30', '2023-08-15 14:31:30', 1, 'Fe::Element', 'asdf') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:30' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:30' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::QuestionGridWithTotal Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::QuestionGridWithTotal', 'grid', 'Label Element 61', TRUE, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'short', 'Label Element 62', TRUE, '2023-08-15 14:31:30', '2023-08-15 14:31:30') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.8ms) COMMIT Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'asdf', '2023-08-15 14:31:30', '2023-08-15 14:31:30')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'something else' WHERE `fe_answers`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (11.6ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:31.146986' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 125) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (1, 'Label Page 125', 125, '2023-08-15 14:31:31', '2023-08-15 14:31:31', '2,1')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 63', TRUE, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 64', TRUE, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (43.4ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (18.3ms) TRUNCATE TABLE `phone_numbers`  (11.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:31.346904' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 126) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 126', 126, '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.6ms) COMMIT Fe::Element Load (3.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:31.487030' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 127) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 127', 127, '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.6ms) COMMIT Fe::Element Load (3.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:31.625316' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 128) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 128', 128, '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 65', TRUE, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:31' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 66', TRUE, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 67', TRUE, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:31' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 68', TRUE, '2023-08-15 14:31:31', '2023-08-15 14:31:31') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (14.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:31.871466' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 129', 129, '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:31.875689' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 129', 129, '2023-08-15 14:31:31', '2023-08-15 14:31:31')  (0.6ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (9.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:32.021004' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 130) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 130', 130, '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (3.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 69', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:32' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 70', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 71', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:32' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 72', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (9.9ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (5.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:32.219730' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 131) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 131', 131, '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 73', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:32' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 74', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:32.393895' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 132) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 132', 132, '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 75', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:32' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 76', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 77', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:32.580890' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 133) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 133', 133, '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (4.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'section', 'Label Element 78', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:32' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:32.753376' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 134) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 134', 134, '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 79', TRUE, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:32', '2023-08-15 14:31:32') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:32' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (18.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_answers`  (13.8ms) TRUNCATE TABLE `fe_applications`  (20.1ms) TRUNCATE TABLE `fe_conditions`  (25.5ms) TRUNCATE TABLE `fe_elements`  (16.8ms) TRUNCATE TABLE `fe_email_templates`  (13.5ms) TRUNCATE TABLE `fe_page_elements`  (16.0ms) TRUNCATE TABLE `fe_pages`  (13.7ms) TRUNCATE TABLE `fe_people`  (10.9ms) TRUNCATE TABLE `fe_question_sheets`  (12.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:32.993964' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 135) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 135', 135, '2023-08-15 14:31:32', '2023-08-15 14:31:32')  (0.6ms) COMMIT Fe::Element Load (2.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.2ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-08-15 14:31:33', '2023-08-15 14:31:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:33.136660' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 136) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 136', 136, '2023-08-15 14:31:33', '2023-08-15 14:31:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 80', TRUE, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:33' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:31:33.163205' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:33' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-08-15 14:31:33', '2023-08-15 14:31:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:33.298612' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 137) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 137', 137, '2023-08-15 14:31:33', '2023-08-15 14:31:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGridWithTotal Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'grid', 'Label Element 81', TRUE, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Update All (0.5ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:31:33.313237' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 1) Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:33' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 82', TRUE, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 83', TRUE, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:31:33.352570' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 2) Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:33' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 84', TRUE, '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-08-15 14:31:33', '2023-08-15 14:31:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:33', '2023-08-15 14:31:33', 1) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:31:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 'relationship_1', 'fn_1', 'ln_1', 'phone_1', 'email_1@email.com', 'created', '2023-08-15 14:31:33', '2023-08-15 14:31:33', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:33' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-08-15 14:31:33', '2023-08-15 14:31:33')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Update (0.7ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:31:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-08-15 14:31:33', '2023-08-15 14:31:33')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Update (0.6ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-08-15 14:31:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:33', '2023-08-15 14:31:33') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Paragraph Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'abc', '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Paragraph Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'Lorem ipsum...', '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.329782' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 138) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 138', 138, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.334130' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 139) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 139', 139, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.337275' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 140) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 140', 140, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.340515' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 141) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 141', 141, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.343463' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 142) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 142', 142, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 85', TRUE, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:34' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 86', TRUE, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:34' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.405307' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 143) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 143', 143, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.408659' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 144) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 144', 144, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.411828' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 145) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 145', 145, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.415197' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 146) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 146', 146, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.418473' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 147) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 147', 147, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.552089' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 148', 148, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.557023' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 149) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 149', 149, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.560477' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 150) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 150', 150, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.563647' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 151', 151, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.566691' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 152) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 152', 152, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 87', TRUE, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (1.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:34' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 88', TRUE, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:34' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.629168' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 153) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 153', 153, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.632423' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 154) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 154', 154, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.635440' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 155) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 155', 155, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.645215' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 156) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 156', 156, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.649408' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 157) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 157', 157, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.784491' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 158) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 158', 158, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.788944' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 159) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 159', 159, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.792338' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 160) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 160', 160, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.795354' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 161) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 161', 161, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.798354' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 162) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 162', 162, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 89', TRUE, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:34' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 90', TRUE, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:34', '2023-08-15 14:31:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:34' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.852376' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 163) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 163', 163, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.855766' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 164) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 164', 164, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.858693' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 165) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 165', 165, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.861776' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 166) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 166', 166, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:34.864907' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 167) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 167', 167, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-08-15 14:31:34', '2023-08-15 14:31:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.000807' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 168) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 168', 168, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.005044' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 169) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 169', 169, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.008390' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 170) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 170', 170, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.011434' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 171) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 171', 171, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.014505' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 172) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 172', 172, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 91', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 92', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.082911' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 173) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 173', 173, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.085971' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 174) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 174', 174, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.089889' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 175) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 175', 175, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.093208' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 176) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 176', 176, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.096452' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 177) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 177', 177, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (8.1ms) TRUNCATE TABLE `fe_users`  (9.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.235954' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 178) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 178', 178, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.240430' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 179) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 179', 179, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.244555' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 180) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 180', 180, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.248557' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 181) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 181', 181, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.253911' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 182) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 182', 182, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 93', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 94', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.329138' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 183) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 183', 183, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (23.4ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.358046' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 184) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 184', 184, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (12.4ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.377828' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 185) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 185', 185, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.384261' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 186) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 186', 186, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.388549' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 187) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 187', 187, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.397045' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 188) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 188', 188, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.400368' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 189) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 189', 189, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.403619' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 190) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 190', 190, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.406703' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 191) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 191', 191, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.409992' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 192) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 192', 192, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (2.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 12  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (11.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.835508' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 193) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 193', 193, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.839574' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 194) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 194', 194, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.842903' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 195) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 195', 195, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.845930' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 196) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 196', 196, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.848960' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 197) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 197', 197, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 95', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 96', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:35' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.915548' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 198) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 198', 198, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.918756' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 199) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 199', 199, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.921762' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 200) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 200', 200, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.924964' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 201) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 201', 201, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.927941' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 202) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 202', 202, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.936258' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 203) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 203', 203, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.939379' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 204) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 204', 204, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.942289' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 205) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 205', 205, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.946577' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 206) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 206', 206, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:35.949671' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 207) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 207', 207, '2023-08-15 14:31:35', '2023-08-15 14:31:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:31:35', '2023-08-15 14:31:35') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 12  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.4ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.4ms) TRUNCATE TABLE `phone_numbers`  (8.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.372499' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 208) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 208', 208, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.376843' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 209) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 209', 209, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.380382' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 210) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 210', 210, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.388087' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 211) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 211', 211, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.392818' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 212) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 212', 212, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 97', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 98', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.460691' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 213) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 213', 213, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.464084' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 214) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 214', 214, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.467225' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 215) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 215', 215, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.470327' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 216) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 216', 216, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.473395' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 217) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 217', 217, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.481021' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 218) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 218', 218, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.484286' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 219) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 219', 219, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.487274' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 220) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 220', 220, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.490512' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 221) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 221', 221, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.493696' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 222) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 222', 222, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 12  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.4ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.4ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.892332' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 223) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 223', 223, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.896501' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 224) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 224', 224, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.900135' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 225) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 225', 225, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.903725' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 226) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 226', 226, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.906901' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 227) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 227', 227, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 99', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (2.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (12.4ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 100', TRUE, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:36', '2023-08-15 14:31:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:36' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:36', '2023-08-15 14:31:36')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.994887' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 228) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 228', 228, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:36.998122' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 229) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 229', 229, '2023-08-15 14:31:36', '2023-08-15 14:31:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.000971' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 230) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 230', 230, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.003990' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 231) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 231', 231, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.007132' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 232) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 232', 232, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 101', TRUE, '2023-08-15 14:31:37', '2023-08-15 14:31:37') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:37' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (17.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:37', '2023-08-15 14:31:37') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:37' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:37' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (34.8ms) TRUNCATE TABLE `fe_addresses`  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (8.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (11.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.238984' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 233) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 233', 233, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.243959' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 234) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 234', 234, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.247363' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 235) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 235', 235, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.250601' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 236) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 236', 236, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.253731' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 237) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 237', 237, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 102', TRUE, '2023-08-15 14:31:37', '2023-08-15 14:31:37') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:37' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:37', '2023-08-15 14:31:37') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:37' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:37' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 103', TRUE, '2023-08-15 14:31:37', '2023-08-15 14:31:37') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:37', '2023-08-15 14:31:37') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:37' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.312941' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 238) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 238', 238, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.316067' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 239) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 239', 239, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.319159' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 240) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 240', 240, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.322261' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 241) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 241', 241, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:37.325220' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 242) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 242', 242, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:37', '2023-08-15 14:31:37')  (0.4ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.4ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (34.7ms) TRUNCATE TABLE `fe_addresses`  (10.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (8.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.010798' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 243) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 243', 243, '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 104', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 105', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 106', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 107', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (6.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.209427' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 244) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (2, 'Label Page 244', 244, '2023-08-15 14:31:38', '2023-08-15 14:31:38', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.216205' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 245) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (3, 'Label Page 245', 245, '2023-08-15 14:31:38', '2023-08-15 14:31:38', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 108', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 244) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.239537' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 244) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 245) AND (`fe_pages`.id != 2) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.243525' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 2) AND (`fe_pages`.`number` >= 245) Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.378867' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 246) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 246', 246, '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 109', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 110', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Update (1.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.425007' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 247) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 247', 247, '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 111', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 3, 1, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 112', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 4, 2, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.589429' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 248) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 248', 248, '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 113', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 114', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 115', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 116', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.795116' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 249) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 249', 249, '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 117', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 118', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 119', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 120', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:38.876575' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 250) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 250', 250, '2023-08-15 14:31:38', '2023-08-15 14:31:38')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 121', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 5, 1, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::TextField', 'short', 'Label Element 122', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::Section', 'section', 'Label Element 123', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 124', TRUE, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 8, 2, '2023-08-15 14:31:38', '2023-08-15 14:31:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:38' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (34.0ms) TRUNCATE TABLE `fe_people`  (9.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-08-15 14:31:39', '2023-08-15 14:31:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-08-15 14:31:39', '2023-08-15 14:31:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:39.105122' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 251) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 251', 251, '2023-08-15 14:31:39', '2023-08-15 14:31:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 251) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:39.110811' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 251) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (2.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (8.4ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 125', TRUE, '2023-08-15 14:31:39', '2023-08-15 14:31:39') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 126', TRUE, '2023-08-15 14:31:39', '2023-08-15 14:31:39') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT Fe::Answer Load (1.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 127', TRUE, '2023-08-15 14:31:39', '2023-08-15 14:31:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 128', TRUE, '2023-08-15 14:31:39', '2023-08-15 14:31:39') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 129', TRUE, '2023-08-15 14:31:39', '2023-08-15 14:31:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:39', '2023-08-15 14:31:39')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::AttachmentField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'section', 'Label Element 130', TRUE, '2023-08-15 14:31:39', '2023-08-15 14:31:39') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `attachment_file_name`, `created_at`, `updated_at`) VALUES (1, 3, 'test_file', 'test_file', '2023-08-15 14:31:39', '2023-08-15 14:31:39')  (0.7ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Destroy (0.4ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 131', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 132', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 133', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.1ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 134', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 135', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 136', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 137', TRUE, 'test', '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.411721' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 252) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 252', 252, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.414964' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 253) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 253', 253, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.418132' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 254) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 254', 254, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.421482' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 255) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 255', 255, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.424613' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 256) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 256', 256, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:40' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 138', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:40' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.8ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 139', TRUE, 'test', '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.618520' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 257) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 257', 257, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.621847' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 258', 258, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.625003' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 259) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 259', 259, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.628057' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 260) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 260', 260, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.631064' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 261) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 261', 261, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:40' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 140', TRUE, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.661036' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 262) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 262', 262, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.664523' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 263) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 263', 263, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.667752' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 264) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 264', 264, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.670959' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 265) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 265', 265, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:40.674019' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 266) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 266', 266, '2023-08-15 14:31:40', '2023-08-15 14:31:40')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:31:40', '2023-08-15 14:31:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:40' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `slug` = 'test' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.1ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (58.2ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (13.2ms) TRUNCATE TABLE `users`  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.5ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (18.9ms) TRUNCATE TABLE `fe_applications`  (23.6ms) TRUNCATE TABLE `fe_conditions`  (24.8ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (5.6ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::ReferenceSheet Create (3.3ms) INSERT INTO `fe_references` (`relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES ('relationship_2', 'fn_2', 'ln_2', 'phone_2', 'email_2@email.com', 'created', '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.4ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.5ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_3', 'fn_3', 'ln_3', 'phone_3', 'email_3@email.com', 'created', '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.6ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.2ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:31:41', '2023-08-15 14:31:41', 1) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:31:41' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 1, 'relationship_4', 'fn_4', 'ln_4', 'phone_4', 'email_4@email.com', 'created', '2023-08-15 14:31:41', '2023-08-15 14:31:41', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (3.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:41' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (13.4ms) TRUNCATE TABLE `fe_addresses`  (9.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.6ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_5', 'fn_5', 'ln_5', 'phone_5', 'email_5@email.com', 'created', '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (9.5ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (17.7ms) TRUNCATE TABLE `fe_addresses`  (17.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (18.6ms) TRUNCATE TABLE `fe_answers`  (19.4ms) TRUNCATE TABLE `fe_applications`  (29.7ms) TRUNCATE TABLE `fe_conditions`  (25.0ms) TRUNCATE TABLE `fe_elements`  (5.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (8.4ms) TRUNCATE TABLE `fe_people`  (8.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:41.994202' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 267) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 267', 267, '2023-08-15 14:31:41', '2023-08-15 14:31:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 267) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:41.999741' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 267) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 141', TRUE, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:42' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:31:42', 'relationship_6', 'fn_6', 'ln_6', 'phone_6', 'email_6@email.com', 'started', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`id` = 1  (21.6ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.8ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (1.0ms) COMMIT Fe::ReferenceSheet Update (1.1ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.6ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (34.3ms) TRUNCATE TABLE `fe_question_sheets`  (14.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.262186' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 268) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 268', 268, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 268) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.268145' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 268) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 142', TRUE, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:42' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:31:42', 'relationship_7', 'fn_7', 'ln_7', 'phone_7', 'email_7@email.com', 'started', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (0.9ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '9a0e6b31fa2621dd528313068e0aee2d' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = '9a0e6b31fa2621dd528313068e0aee2d', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.4ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.464377' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 269) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 269', 269, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 269) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.470088' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 269) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 143', TRUE, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:42' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:31:42', 'relationship_8', 'fn_8', 'ln_8', 'phone_8', 'email_8@email.com', 'started', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'created' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.7ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '8f09961755a13be4a5830b20677575d1' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `access_key` = '8f09961755a13be4a5830b20677575d1', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.669469' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 270) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 270', 270, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 270) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.675356' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 270) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 144', TRUE, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:42' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:31:42', 'relationship_9', 'fn_9', 'ln_9', 'phone_9', 'email_9@email.com', 'started', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.6ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.9ms) COMMIT Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.4ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'a4e5035ea3ba2a10b9aa5dcea0a83899' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'a4e5035ea3ba2a10b9aa5dcea0a83899', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.881134' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 271) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 271', 271, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 271) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:42.886974' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 271) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 145', TRUE, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:42', '2023-08-15 14:31:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:42' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:31:42', 'relationship_10', 'fn_10', 'ln_10', 'phone_10', 'email_10@email.com', 'started', '2023-08-15 14:31:42', '2023-08-15 14:31:42', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:42' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.9ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:31:42', '2023-08-15 14:31:42')  (0.4ms) COMMIT Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 146', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_11', 'fn_11', 'ln_11', 'phone_11', 'email_11@email.com', 'created', '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (3.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 147', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (9.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (9.6ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 148', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Person Create (1.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.6ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_12', 'fn_12', 'ln_12', 'phone_12', 'email_12@email.com', 'created', '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 149', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'some text response', '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.456863' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 272) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 272', 272, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.461045' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 273) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 273', 273, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.464388' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 274) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 274', 274, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.471610' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 275) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 275', 275, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.475286' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 276) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 276', 276, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:43' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43', 1) Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:43' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 3, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:43' WHERE `fe_pages`.`id` = 4  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_13', 'fn_13', 'ln_13', 'phone_13', 'email_13@email.com', 'created', '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`id` = 1  (6.7ms) COMMIT Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.760404' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 277) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 277', 277, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.764754' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 278) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 278', 278, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.768103' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 279) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 279', 279, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.771350' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 280) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 280', 280, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:43.774621' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 281) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 281', 281, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:43' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:31:43', '2023-08-15 14:31:43', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:43' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_14', 'fn_14', 'ln_14', 'phone_14', 'email_14@email.com', 'created', '2023-08-15 14:31:43', '2023-08-15 14:31:43') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (1.0ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:31:43' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:31:43', '2023-08-15 14:31:43')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.015942' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 282) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 282', 282, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.021010' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 283) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 283', 283, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.024502' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 284) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 284', 284, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.027784' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 285) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 285', 285, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.030872' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 286) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 286', 286, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:44', '2023-08-15 14:31:44', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:44' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:44' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_15', 'fn_15', 'ln_15', 'phone_15', 'email_15@email.com', 'created', '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`id` = 1  (6.0ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.271971' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 287) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 287', 287, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.275958' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 288) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 288', 288, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.279445' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 289) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 289', 289, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.282833' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 290) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 290', 290, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.286011' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 291) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 291', 291, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:44', '2023-08-15 14:31:44', 'Fe::Element', 'yes') Fe::Page Load (2.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:44' WHERE `fe_pages`.`id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:44' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_16', 'fn_16', 'ln_16', 'phone_16', 'email_16@email.com', 'created', '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.530161' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 292) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 292', 292, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.534891' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 293) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 293', 293, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.538195' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 294) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 294', 294, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.541230' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 295) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 295', 295, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.544313' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 296) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 296', 296, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:44' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_17', 'fn_17', 'ln_17', 'phone_17', 'email_17@email.com', 'created', '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`id` = 1  (10.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.753017' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 297) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 297', 297, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.757219' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 298) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 298', 298, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.760825' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 299) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 299', 299, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.764044' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 300) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 300', 300, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.767523' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 301) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 301', 301, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', FALSE, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_18', 'fn_18', 'ln_18', 'phone_18', 'email_18@email.com', 'created', '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (9.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.927470' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 302) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 302', 302, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.932126' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 303) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 303', 303, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.935438' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 304) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 304', 304, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.938783' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 305) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 305', 305, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:44.941978' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 306) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 306', 306, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:44' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_19', 'fn_19', 'ln_19', 'phone_19', 'email_19@email.com', 'created', '2023-08-15 14:31:44', '2023-08-15 14:31:44') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:31:44' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c28cd638ca31e26e7657ce54e6f2ea6b' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ca10f2a595ca44e74e16a8f265002ab3' LIMIT 1 Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '54bf2ff58050c8b1be027ff20a33a713' LIMIT 1 Fe::ReferenceSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '2af3ed7da6757b2a418102a0cd743c38' LIMIT 1 Fe::ReferenceSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '3e1dff059cdbe77e050968424e5ca9d2' LIMIT 1 Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '7c1f2a3f7cc0c77946a94258218938a6' LIMIT 1 Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'e0ba9630edd61b5f1e15be7afff1e78c' LIMIT 1 Fe::ReferenceSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b0f306c629f17e3c3e6e1aa52e170c49' LIMIT 1 Fe::ReferenceSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '98b6895befb78f86ec4888772d1e8866' LIMIT 1 Fe::ReferenceSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'f9a1a5f4be11354e6d341e95761610e8' LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.274310' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 307) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 307', 307, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.278572' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 308) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 308', 308, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.281643' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 309) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 309', 309, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.284811' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 310) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 310', 310, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.288235' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 311) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 311', 311, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 150', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45', 1, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 151', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.387542' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 312) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 312', 312, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.390875' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 313) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 313', 313, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.393862' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 314) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 314', 314, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.396729' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 315) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 315', 315, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.399851' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 316) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 316', 316, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_20', 'fn_20', 'ln_20', 'phone_20', 'email_20@email.com', 'created', '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `visible` = FALSE WHERE `fe_references`.`id` = 1  (0.1ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143145000000', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.588714' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 317) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 317', 317, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.593595' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 318) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 318', 318, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.596909' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 319) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 319', 319, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.600239' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 320) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 320', 320, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.603388' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 321) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 321', 321, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 152', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45', 1, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 153', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.698676' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 322) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 322', 322, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.701977' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 323) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 323', 323, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.705013' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 324) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 324', 324, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.708218' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 325) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 325', 325, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.711498' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 326) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 326', 326, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_21', 'fn_21', 'ln_21', 'phone_21', 'email_21@email.com', 'created', '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `visible` = FALSE, `visibility_cache_key` = 'something' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143145000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.885000' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 327) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 327', 327, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.889527' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 328) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 328', 328, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.892856' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 329) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 329', 329, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.895961' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 330) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 330', 330, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:45.899046' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 331) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 331', 331, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 154', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45', 1, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 155', TRUE, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:45', '2023-08-15 14:31:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:45' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.6ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-08-15 14:31:45', '2023-08-15 14:31:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.000595' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 332) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 332', 332, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.003858' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 333) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 333', 333, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.007156' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 334) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 334', 334, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.010029' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 335) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 335', 335, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.012921' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 336) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 336', 336, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_22', 'fn_22', 'ln_22', 'phone_22', 'email_22@email.com', 'created', '2023-08-15 14:31:46', '2023-08-15 14:31:46') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143146000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:46' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.176974' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 337) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 337', 337, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.181848' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 338) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 338', 338, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.185113' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 339) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 339', 339, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.188222' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 340) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 340', 340, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.191188' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 341) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 341', 341, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 156', TRUE, '2023-08-15 14:31:46', '2023-08-15 14:31:46') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:46', '2023-08-15 14:31:46', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:31:46', '2023-08-15 14:31:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:46' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:31:46', '2023-08-15 14:31:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:46' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 157', TRUE, '2023-08-15 14:31:46', '2023-08-15 14:31:46') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:46' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:46', '2023-08-15 14:31:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:46' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.280159' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 342) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 342', 342, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.283418' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 343) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 343', 343, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.286625' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 344) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 344', 344, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.289845' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 345) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 345', 345, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:46.292958' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 346) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 346', 346, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.8ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:31:46', '2023-08-15 14:31:46')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_23', 'fn_23', 'ln_23', 'phone_23', 'email_23@email.com', 'created', '2023-08-15 14:31:46', '2023-08-15 14:31:46') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143146000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:46' WHERE `fe_references`.`id` = 1  (6.8ms) COMMIT Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.6ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-08-15 14:31:47' WHERE `fe_answers`.`id` = 1  (1.3ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (9.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.9ms) TRUNCATE TABLE `phone_numbers`  (8.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (13.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:48.524690' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 347) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 347', 347, '2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (2.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:48.737145' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 348) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 348', 348, '2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.8ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.7ms) COMMIT Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (8.8ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:48.965259' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 349) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 349', 349, '2023-08-15 14:31:48', '2023-08-15 14:31:48')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:31:48', '2023-08-15 14:31:48', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:48', '2023-08-15 14:31:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:48' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.8ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2', `updated_at` = '2023-08-15 14:31:49' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT Fe::Answer Load (2.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'choice 1', '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:49.213277' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 350) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 350', 350, '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 2', '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.2ms) COMMIT  (0.8ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (26.6ms) TRUNCATE TABLE `fe_page_elements`  (30.1ms) TRUNCATE TABLE `fe_pages`  (9.8ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:49.497106' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 351', 351, '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.1ms) COMMIT  (1.3ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:49.719214' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 352) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 352', 352, '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:49.946374' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 353) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 353', 353, '2023-08-15 14:31:49', '2023-08-15 14:31:49')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:31:49', '2023-08-15 14:31:49', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:49', '2023-08-15 14:31:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:49' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:31:50', '2023-08-15 14:31:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:50', '2023-08-15 14:31:50')  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, '', '2023-08-15 14:31:50', '2023-08-15 14:31:50')  (1.1ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) COMMIT  (0.7ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.0ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (9.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (11.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (9.2ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (5.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (9.6ms) TRUNCATE TABLE `fe_conditions`  (10.3ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 158', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:52', '2023-08-15 14:31:52', 'a; b\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.162697' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 354) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 354', 354, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 354) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.167182' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 354) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:52' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.7ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.7ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (8.4ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 159', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:52', '2023-08-15 14:31:52', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.351671' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 355) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 355', 355, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 355) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.356607' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 355) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.7ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:52' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 160', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:52', '2023-08-15 14:31:52', '') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.543187' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 356) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 356', 356, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 356) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.547701' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 356) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:52' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 161', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:31:52', '2023-08-15 14:31:52', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.714985' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 357) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 357', 357, '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 357) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:52.719306' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 357) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:52', '2023-08-15 14:31:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:52' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:31:52', '2023-08-15 14:31:52')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:53.133946' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 358) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 358', 358, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb [1 times] (2.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (7.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (0.6ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (7.2ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGridWithTotal') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_submit_to.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (43.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.5ms) Completed 200 OK in 75ms (Views: 55.3ms | ActiveRecord: 7.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Rendering html template within layouts/fe/application Rendered html template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 2.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (8.4ms) TRUNCATE TABLE `fe_email_templates`  (9.4ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Redirected to http://test.host/referrer Completed 302 Found in 5ms (ActiveRecord: 2.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:53.664660' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 359) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 359', 359, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:53.668779' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 360) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 360', 360, TRUE, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.6ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:53.814754' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 361) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 361', 361, '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 162', TRUE, '2023-08-15 14:31:53', '2023-08-15 14:31:53') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:53', '2023-08-15 14:31:53') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:53' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_24', 'fn_24', 'ln_24', 'phone_24', 'email_24@email.com', 'created', '2023-08-15 14:31:53', '2023-08-15 14:31:53') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (2.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:31:53' WHERE `fe_references`.`id` = 1  (6.8ms) COMMIT  (0.4ms) BEGIN Fe::EmailTemplate Create (2.3ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (0.5ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-08-15 14:31:53', '2023-08-15 14:31:53')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"email"=>"email@email.com", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "relationship"=>"rel", "title"=>"title"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'afcd35dc9f60a180196c523eb9318a94' LIMIT 1 Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = 'afcd35dc9f60a180196c523eb9318a94' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendering text template Rendered text template (0.1ms) Fe::Notifier#notification: processed outbound mail in 203.7ms Sent mail to email@email.com (8.8ms) Date: Tue, 15 Aug 2023 10:31:54 -0400 From: info@example.com To: email@email.com Message-ID: <64db8c5a1afd8_1cec3ffe1b040ebc31666@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms Sent mail to email@email.com (1.5ms) Date: Tue, 15 Aug 2023 10:31:54 -0400 From: info@example.com To: email@email.com Message-ID: <64db8c5a1c868_1cec3ffe1b040ebc31723@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = '2023-08-15 14:31:54', `updated_at` = '2023-08-15 14:31:54' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (1.1ms) Completed 200 OK in 373ms (Views: 72.9ms | ActiveRecord: 5.0ms) Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (15.8ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) BEGIN Fe::Application Create (0.6ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:54', '2023-08-15 14:31:54') Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.4ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 163', TRUE, '2023-08-15 14:31:54', '2023-08-15 14:31:54') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:54.578918' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 362) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 362', 362, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:54', '2023-08-15 14:31:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:54' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (7.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (19.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (23.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 46ms (Views: 29.0ms | ActiveRecord: 4.8ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.3ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:54.789697' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 363) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 363', 363, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 164', TRUE, '2023-08-15 14:31:54', '2023-08-15 14:31:54') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:54.803493' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 364) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 364', 364, '2023-08-15 14:31:54', '2023-08-15 14:31:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:31:54', '2023-08-15 14:31:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:54' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:54', '2023-08-15 14:31:54') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:54' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.4ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (3.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (5.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (6.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 12.2ms | ActiveRecord: 5.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:55.020074' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 365) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 365', 365, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 165', TRUE, TRUE, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:55' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 166', TRUE, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:55' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 167', TRUE, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:55' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.7ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (3.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (6.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (6.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 41ms (Views: 20.2ms | ActiveRecord: 6.0ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (11.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:55.279832' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 366) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 366', 366, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 168', TRUE, TRUE, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:55' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 169', TRUE, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:55' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 170', TRUE, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:55', '2023-08-15 14:31:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:55' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (2.1ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [2 times] (4.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (7.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (7.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 10.5ms | ActiveRecord: 7.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application Fe::Application Load (0.7ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (5.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 9.9ms | ActiveRecord: 1.6ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (53.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (13.0ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:31:55', '2023-08-15 14:31:55')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (9.3ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.9ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.0ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.0ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:56.505237' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 367) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 367', 367, '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.3ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (2.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (2.1ms) Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 6.6ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:56.667916' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 368) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 368', 368, '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 171', TRUE, TRUE, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (1.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:56' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 172', TRUE, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:56' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 173', TRUE, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:56' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:56', '2023-08-15 14:31:56')  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.8ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (19.9ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (34.6ms) Completed 200 OK in 46ms (Views: 27.2ms | ActiveRecord: 10.2ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (9.0ms) TRUNCATE TABLE `fe_email_templates`  (9.3ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:56.941438' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 369) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 369', 369, '2023-08-15 14:31:56', '2023-08-15 14:31:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 174', TRUE, TRUE, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:56' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 175', TRUE, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.5ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:56' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 176', TRUE, '2023-08-15 14:31:56', '2023-08-15 14:31:56') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:57' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.8ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.2ms)  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (8.8ms) Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (2.5ms)  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (29.0ms) Completed 200 OK in 43ms (Views: 20.8ms | ActiveRecord: 12.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (11.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:57', '2023-08-15 14:31:57')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:57.211818' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 370) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 370', 370, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 177', TRUE, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:57' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:31:57' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_25', 'fn_25', 'ln_25', 'phone_25', 'initial@ref.com', 'created', '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.5ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"email"=>"email@reference.com", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "relationship"=>"roommate", "title"=>"A"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (3.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: ca81ccc1-03bb-415e-be8d-506b26d0d990) to Test(default) with arguments: #>, [1] Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'caa7bb0e368fb2974e2bfad846247de5' LIMIT 1 Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = 'caa7bb0e368fb2974e2bfad846247de5' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Update (0.3ms) UPDATE `fe_applications` SET `locale` = NULL WHERE `fe_applications`.`id` = 1  (0.6ms) COMMIT  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (1.4ms) Completed 200 OK in 65ms (Views: 12.2ms | ActiveRecord: 12.0ms) Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:57.457008' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 371) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 371', 371, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 178', TRUE, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:57' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:57.485740' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 372) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 372, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 179', TRUE, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:57' WHERE `fe_pages`.`id` = 2  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:57', '2023-08-15 14:31:57', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:31:57' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_26', 'fn_26', 'ln_26', 'phone_26', 'initial@ref.com', 'created', '2023-08-15 14:31:57', '2023-08-15 14:31:57', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.7ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:57' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"ref answer here"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'ref answer here', '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 736a5b99-559d-4547-b2e8-1fa9ed8e00c6) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 7.0ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:57.710753' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 373) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 372', 373, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 180', TRUE, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:57' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:57.737566' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 374) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 374, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 181', TRUE, 'answer_sheet', 'email', '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:57' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:31:57', '2023-08-15 14:31:57', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:31:57' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_27', 'fn_27', 'ln_27', 'phone_27', 'initial@ref.com', 'created', '2023-08-15 14:31:57', '2023-08-15 14:31:57', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:31:57' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ef75f832edcc824cf3439fb0edc35a06' LIMIT 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `access_key` = 'ef75f832edcc824cf3439fb0edc35a06', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"a"=>"ef75f832edcc824cf3439fb0edc35a06", "answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"other@email.com"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `email` = 'other@email.com' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.3ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 8191a939-e252-4efe-bb8c-dcf060fea5ea) to Test(default) with arguments: #>, [2]  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.4ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 24ms (Views: 0.8ms | ActiveRecord: 7.6ms) Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:57.944790' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 375) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 373', 375, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 182', TRUE, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:57', '2023-08-15 14:31:57') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:57' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (6.6ms) Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (14.4ms) Completed 200 OK in 32ms (Views: 14.5ms | ActiveRecord: 3.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:58.138769' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 376) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 374', 376, '2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 183', TRUE, '2023-08-15 14:31:58', '2023-08-15 14:31:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:58', '2023-08-15 14:31:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:58' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1) LIMIT 1  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (6.6ms) Completed 200 OK in 26ms (Views: 12.6ms | ActiveRecord: 2.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:58.324610' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 377) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 375', 377, '2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:58', '2023-08-15 14:31:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 184', TRUE, '2023-08-15 14:31:58', '2023-08-15 14:31:58') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:58', '2023-08-15 14:31:58') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:58' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (68.1ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (129.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (198.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (2.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (62.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (130.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (196.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (81.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (462.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (788.4ms) Completed 200 OK in 866ms (Views: 849.0ms | ActiveRecord: 5.2ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:59.344741' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 378) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 376', 378, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 185', TRUE, '2023-08-15 14:31:59', '2023-08-15 14:31:59', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 185', TRUE, '2023-08-15 14:31:59', '2023-08-15 14:31:59', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `share` = FALSE WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (3.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.2ms) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (5.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (10.6ms) Completed 200 OK in 35ms (Views: 10.2ms | ActiveRecord: 8.7ms) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.1ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:59.536654' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 379) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 377', 379, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:59.543932' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 380) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 378', 380, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 186', TRUE, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:31:59.584650' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (8.8ms) Completed 200 OK in 39ms (Views: 9.4ms | ActiveRecord: 8.2ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (8.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:59.754163' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 381) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 379', 381, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 187', TRUE, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.2ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:31:59.790332' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (2.1ms) Completed 200 OK in 25ms (Views: 2.8ms | ActiveRecord: 9.2ms) Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (8.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (8.1ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:31:59.944587' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 382) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 380', 382, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 188', TRUE, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:31:59', '2023-08-15 14:31:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.4ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:31:59.982768' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:31:59' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Condition Update All (1.4ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 Fe::Condition Update All (0.3ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 Fe::TextField Destroy (0.4ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.7ms) Completed 200 OK in 37ms (Views: 2.4ms | ActiveRecord: 19.7ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.8ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:00.142994' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 383) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 381', 383, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 189', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 190', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 191', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 192', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 193', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.6ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.2ms) BEGIN Fe::TextField Update (0.5ms) UPDATE `fe_elements` SET `position` = 2 WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 1 WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (1.0ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.4ms) Completed 200 OK in 52ms (Views: 0.9ms | ActiveRecord: 12.0ms)  (0.3ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:00.415681' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 384) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 382', 384, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 194', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 195', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 196', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 197', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 198', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 2 WHERE `fe_page_elements`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 2) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:32:00.499703' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 1) AND (`fe_page_elements`.`position` > 1) AND (`fe_page_elements`.`position` <= 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Update (0.4ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.4ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.4ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:32:00.522555' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 1 WHERE `fe_page_elements`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 53ms (Views: 0.5ms | ActiveRecord: 20.3ms) Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:00.683663' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 385) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 383', 385, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 199', TRUE, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:32:00', '2023-08-15 14:32:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:00' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (1.9ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.1ms) Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (6.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (14.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (26.2ms) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (43.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (55.5ms) Completed 200 OK in 79ms (Views: 54.7ms | ActiveRecord: 4.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.7ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (37.5ms) TRUNCATE TABLE `fe_page_elements`  (12.1ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (11.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:00', '2023-08-15 14:32:00')  (19.5ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:00.991130' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 386) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 384', 386, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:00', '2023-08-15 14:32:00')  (0.7ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', TRUE, '2023-08-15 14:32:01', '2023-08-15 14:32:01') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:01' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.3ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (9.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.2ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (14.7ms) Completed 200 OK in 45ms (Views: 14.3ms | ActiveRecord: 8.5ms)  (1.0ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:01.183792' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 387) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 385', 387, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.7ms) COMMIT  (2.0ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.4ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM `fe_elements`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:01.334152' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 388) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 386', 388, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 200', TRUE, '2023-08-15 14:32:01', '2023-08-15 14:32:01', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 201', TRUE, '2023-08-15 14:32:01', '2023-08-15 14:32:01') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:01' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:32:01', '2023-08-15 14:32:01') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:01' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (0.9ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = FALSE AND `fe_elements`.`share` = TRUE AND `fe_elements`.`style` = 'style' ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (64.2ms) Completed 500 Internal Server Error in 129ms (ActiveRecord: 1.2ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 202', TRUE, '2023-08-15 14:32:01', '2023-08-15 14:32:01', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:01.665841' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 389) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 387', 389, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 389) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:01.673010' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 389) Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:01' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 203', TRUE, '2023-08-15 14:32:01', '2023-08-15 14:32:01', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:01.843037' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 390) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 388', 390, '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 390) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:32:01.847392' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 390) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:32:01', '2023-08-15 14:32:01') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:32:01' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:32:01', '2023-08-15 14:32:01')  (0.8ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (51.8ms) TRUNCATE TABLE `fe_answers`  (11.7ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (8.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (14.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (8.1ms) TRUNCATE TABLE `fe_question_sheets`  (11.2ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (504.2ms) TRUNCATE TABLE `fe_answers`  (14.8ms) TRUNCATE TABLE `fe_applications`  (12.1ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (18.6ms) TRUNCATE TABLE `phone_numbers`  (10.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:03', '2023-08-15 14:32:03')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:32:03', '2023-08-15 14:32:03') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-08-15 14:32:03', '2023-08-15 14:32:03')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:03', '2023-08-15 14:32:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:32:03', '2023-08-15 14:32:03') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-08-15 14:32:03', '2023-08-15 14:32:03')  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (13.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:32:03', '2023-08-15 14:32:03')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:32:03', '2023-08-15 14:32:03') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:32:03 UTC', '2023-08-15 14:32:03', '2023-08-15 14:32:03')  (0.9ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (75.5ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) select table_name from information_schema.views where table_schema = 'fe_test'  (12.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-08-15 14:35:08', '2023-08-15 14:35:08')  (1.3ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:08.711108' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 1) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 1', 1, '2023-08-15 14:35:08', '2023-08-15 14:35:08')  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (3.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:35:08', '2023-08-15 14:35:08', TRUE) Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (22.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:35:08', '2023-08-15 14:35:08') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (5.4ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:35:08', '2023-08-15 14:35:08', TRUE) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:35:08', '2023-08-15 14:35:08', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:08', '2023-08-15 14:35:08') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (0.8ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.6ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:09.203026' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 2) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 2', 2, '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.7ms) COMMIT Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:09.416832' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 3) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 3', 3, '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.8ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (1.1ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:09.643891' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 4) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 4', 4, '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.4ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (1.0ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 2', '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (40.0ms) TRUNCATE TABLE `fe_elements`  (9.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (11.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:09.951763' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 5) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 5', 5, '2023-08-15 14:35:09', '2023-08-15 14:35:09')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:35:09', '2023-08-15 14:35:09', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:09', '2023-08-15 14:35:09') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:09' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.7ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2', `updated_at` = '2023-08-15 14:35:10' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (0.5ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'choice 1', '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:10.204982' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 6) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 6', 6, '2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.9ms) COMMIT Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:10.437090' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 7) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 7', 7, '2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-08-15 14:35:10', '2023-08-15 14:35:10', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:10', '2023-08-15 14:35:10') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:10' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, '', '2023-08-15 14:35:10', '2023-08-15 14:35:10')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) COMMIT  (1.1ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:11.041337' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 8) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 8', 8, '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:11.045914' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 9) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 9', 9, '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:11.049216' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 10) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 10', 10, '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:11.052313' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 11) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 11', 11, '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:11.055432' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 12) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 12', 12, '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will show the next element if the answer is yes', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:11', '2023-08-15 14:35:11', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:11', '2023-08-15 14:35:11') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:11' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that is made visible by the previous element', TRUE, '2023-08-15 14:35:11', '2023-08-15 14:35:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:11', '2023-08-15 14:35:11') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:11' WHERE `fe_pages`.`id` = 4  (0.4ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.7ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (1.0ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.3ms) COMMIT Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'yes' WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (10.1ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (6.4ms) TRUNCATE TABLE `phone_numbers`  (5.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.8ms) TRUNCATE TABLE `fe_addresses`  (6.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.6ms) TRUNCATE TABLE `fe_answers`  (6.9ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (5.6ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:11.797561' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 13) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (1, 'Label Page 13', 13, '2023-08-15 14:35:11', '2023-08-15 14:35:11', '2,1')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 1', TRUE, '2023-08-15 14:35:11', '2023-08-15 14:35:11') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 2', TRUE, '2023-08-15 14:35:11', '2023-08-15 14:35:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:11.942065' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 14) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 14', 14, '2023-08-15 14:35:11', '2023-08-15 14:35:11')  (0.4ms) COMMIT Fe::Element Load (2.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:12.081758' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 15) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 15', 15, '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.6ms) COMMIT Fe::Element Load (2.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (8.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.4ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (2.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:12.224721' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 16) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 16', 16, '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 3', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:12' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 4', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 5', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:12' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 6', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.5ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.8ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:12.521356' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 17) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 17', 17, '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 7', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:12' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 8', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 9', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:12' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 10', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.9ms) COMMIT Fe::Page Update (1.5ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (1.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:12.730920' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 18) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 18', 18, '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 11', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:12' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 12', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:12.907994' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 19', 19, '2023-08-15 14:35:12', '2023-08-15 14:35:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 13', TRUE, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.9ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:12', '2023-08-15 14:35:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:12' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:13.064505' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 20) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 20', 20, '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'section', 'Label Element 14', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:13' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:13.224137' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 21) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 21', 21, '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 15', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:13' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 16', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 17', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (12.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:13.402387' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 22) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 22', 22, '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 18', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 19', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13', 1, 'Fe::Element', 'asdf') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:13' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:13' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::QuestionGridWithTotal Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::QuestionGridWithTotal', 'grid', 'Label Element 20', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'short', 'Label Element 21', TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'asdf', '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'something else' WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (11.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:13.750869' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 23) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 23', 23, TRUE, '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (44.3ms) TRUNCATE TABLE `fe_references`  (8.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:13.924762' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 24', 24, '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:13.928659' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 24', 24, '2023-08-15 14:35:13', '2023-08-15 14:35:13')  (0.5ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.8ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.1ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_references`  (6.1ms) TRUNCATE TABLE `fe_users`  (6.0ms) TRUNCATE TABLE `phone_numbers`  (5.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.7ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:14.068453' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 25) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 25', 25, '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.5ms) COMMIT Fe::Element Load (3.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (6.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (6.5ms) TRUNCATE TABLE `fe_applications`  (9.3ms) TRUNCATE TABLE `fe_conditions`  (9.0ms) TRUNCATE TABLE `fe_elements`  (6.0ms) TRUNCATE TABLE `fe_email_templates`  (6.4ms) TRUNCATE TABLE `fe_page_elements`  (5.9ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (5.4ms) TRUNCATE TABLE `fe_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_references`  (5.6ms) TRUNCATE TABLE `fe_users`  (6.1ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:14.191232' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 26) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 26', 26, '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 22', TRUE, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:14' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:35:14.219372' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:14' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.7ms) TRUNCATE TABLE `fe_addresses`  (6.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.8ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (8.9ms) TRUNCATE TABLE `fe_conditions`  (9.1ms) TRUNCATE TABLE `fe_elements`  (6.2ms) TRUNCATE TABLE `fe_email_templates`  (6.9ms) TRUNCATE TABLE `fe_page_elements`  (5.7ms) TRUNCATE TABLE `fe_pages`  (5.6ms) TRUNCATE TABLE `fe_people`  (5.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (5.7ms) TRUNCATE TABLE `fe_users`  (6.0ms) TRUNCATE TABLE `phone_numbers`  (5.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:14.335132' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 27) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 27', 27, '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGridWithTotal Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'grid', 'Label Element 23', TRUE, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:35:14.347090' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 1) Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:14' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 24', TRUE, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 25', TRUE, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-08-15 14:35:14.380424' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 2) Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:14' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 26', TRUE, '2023-08-15 14:35:14', '2023-08-15 14:35:14') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.4ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) TRUNCATE TABLE `fe_addresses`  (6.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (13.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:14.545154' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 28) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 28', 28, '2023-08-15 14:35:14', '2023-08-15 14:35:14')  (0.9ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (5.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (18.9ms) Completed 200 OK in 97ms (Views: 83.7ms | ActiveRecord: 4.0ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.1ms) TRUNCATE TABLE `fe_applications`  (9.2ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (8.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (58.8ms) TRUNCATE TABLE `fe_page_elements`  (8.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (17.2ms) TRUNCATE TABLE `fe_applications`  (16.4ms) TRUNCATE TABLE `fe_conditions`  (13.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.2ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.358450' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 29) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 29', 29, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.363195' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 30) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 30', 30, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.366683' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 31) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 31', 31, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.377146' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 32) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 32', 32, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.381827' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 33) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 33', 33, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:15', '2023-08-15 14:35:15', 5, 'Fe::Page') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:15', '2023-08-15 14:35:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:15' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 2 WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 2)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 3 WHERE `fe_pages`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 3)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 4  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.421221' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 4) AND (`fe_pages`.`number` >= 1) AND (`fe_pages`.`number` < 32)  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 4 WHERE `fe_pages`.`id` = 5  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 4) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.428917' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 5) AND (`fe_pages`.`number` >= 4) AND (`fe_pages`.`number` < 33)  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (13.6ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.695210' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 34) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 34', 34, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.699493' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 35) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 35', 35, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.703030' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 36) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 36', 36, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.706359' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 37) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 37', 37, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.709356' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 38) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 38', 38, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (5.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:15', '2023-08-15 14:35:15', 5, 'Fe::Page') Fe::Page Load (1.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:15', '2023-08-15 14:35:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:15' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.8ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.886091' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 39) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 39', 39, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.890089' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 40) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 40', 40, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.893386' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 41) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 41', 41, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.896691' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 42) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 42', 42, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:15.899777' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 43) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 43', 43, '2023-08-15 14:35:15', '2023-08-15 14:35:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:15', '2023-08-15 14:35:15', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:15', '2023-08-15 14:35:15') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:15' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved', TRUE, '2023-08-15 14:35:15', '2023-08-15 14:35:15') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:15', '2023-08-15 14:35:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:15' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved to become hidden', TRUE, '2023-08-15 14:35:15', '2023-08-15 14:35:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 3, 3, '2023-08-15 14:35:15', '2023-08-15 14:35:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:15' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:35:15.978037' WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:15' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.135294' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 44) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 44', 44, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.140243' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 45) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 45', 45, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.144055' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 46) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 46', 46, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.147394' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 47) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 47', 47, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.150470' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 48) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 48', 48, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL1', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:16', '2023-08-15 14:35:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:16' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL2', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::QuestionGrid Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'LVL3 (GRID)', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16', 2) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::ChoiceField', 'yes-no', 'LVL4', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'EL (LVL5)', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:16', '2023-08-15 14:35:16')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.9ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.6ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.5ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.2ms) COMMIT Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'yes', '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 4, 'yes', '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (1.0ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.7ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 2  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.600382' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 49) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 49', 49, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.604959' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 50) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 50', 50, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.608239' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 51) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 51', 51, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.611326' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 52) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 52', 52, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.614620' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 53) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 53', 53, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16', 5, 'Fe::Page', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:16', '2023-08-15 14:35:16') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:16' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:35:16', '2023-08-15 14:35:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:16' WHERE `fe_pages`.`id` = 5  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.6ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (10.1ms) TRUNCATE TABLE `fe_applications`  (13.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (9.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.972003' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 54) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 54', 54, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.976166' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 55) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 55', 55, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.980136' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 56) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 56', 56, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.983632' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 57) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 57', 57, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:16.986746' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 58) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 58', 58, '2023-08-15 14:35:16', '2023-08-15 14:35:16')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (4.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the enclosed element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:16', '2023-08-15 14:35:16', 'Fe::Element') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:17', '2023-08-15 14:35:17') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:17' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the enclosing element', TRUE, '2023-08-15 14:35:17', '2023-08-15 14:35:17', 1) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:17', '2023-08-15 14:35:17') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.2ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:17' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.7ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:17.347600' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 59) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 59', 59, '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:17.351887' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 60) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 60', 60, '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:17.355654' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 61) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 61', 61, '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:17.358954' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 62) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 62', 62, '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:17.361908' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 63) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 63', 63, '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:17', '2023-08-15 14:35:17', 5, 'Fe::Page', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:17', '2023-08-15 14:35:17') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:17' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-08-15 14:35:17', '2023-08-15 14:35:17') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-08-15 14:35:17', '2023-08-15 14:35:17') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:17' WHERE `fe_pages`.`id` = 5  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:35:17', '2023-08-15 14:35:17')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (11.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_answers`  (9.7ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (11.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.101334' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 64) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 64', 64, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.105524' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 65) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 65', 65, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.109257' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 66) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 66', 66, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.112919' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 67) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 67', 67, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.116229' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 68) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 68', 68, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:18', '2023-08-15 14:35:18', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:18' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:18' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.5ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.8ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 27', TRUE, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 28', TRUE, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 29', TRUE, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.605056' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 69) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 69', 69, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:18' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:18' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:18' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 30', TRUE, TRUE, '2023-08-15 14:35:18', '2023-08-15 14:35:18', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 31', TRUE, TRUE, '2023-08-15 14:35:18', '2023-08-15 14:35:18', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.810066' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 70) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 70', 70, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.813097' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 71) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 71', 71, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.816142' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 72) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 72', 72, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.819246' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 73) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 73', 73, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.822447' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 74) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 74', 74, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.832091' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 75) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 75', 75, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.835446' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 76) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 76', 76, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.838836' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 77) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 77', 77, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.841977' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 78) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 78', 78, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.845061' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 79) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 79', 79, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:18' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:35:18', '2023-08-15 14:35:18') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:18' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:18.885786' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 80) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 80', 80, '2023-08-15 14:35:18', '2023-08-15 14:35:18')  (0.6ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (8.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 32', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 33', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.052005' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 81) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 81', 81, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.055254' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 82) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 82', 82, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.058538' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 83) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 83', 83, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.061914' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 84) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 84', 84, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.064961' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 85) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 85', 85, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.074352' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 86) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 86', 86, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.077692' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 87) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 87', 87, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.080796' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 88) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 88', 88, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.083823' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 89) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 89', 89, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.086950' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 90) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 90', 90, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:35:19', '2023-08-15 14:35:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:19' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:35:19', '2023-08-15 14:35:19') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:19' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 34', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 35', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.299923' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 91) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 91', 91, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.303146' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 92) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 92', 92, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.306304' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 93) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 93', 93, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.309475' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 94) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 94', 94, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.312855' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 95) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 95', 95, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.327172' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 96) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 96', 96, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.330419' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 97) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 97', 97, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.333497' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 98) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 98', 98, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.336483' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 99) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 99', 99, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.339588' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 100) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 100', 100, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:35:19', '2023-08-15 14:35:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:19' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:35:19', '2023-08-15 14:35:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:19' WHERE `fe_pages`.`id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.380169' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 101) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 101', 101, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.383303' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 102) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 102', 102, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.386389' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 103) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 103', 103, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.389493' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 104) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 104', 104, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.392675' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 105) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 105', 105, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.4ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 36', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 37', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.567347' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 106) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 106', 106, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.570671' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 107) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 107', 107, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.573726' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 108) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 108', 108, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.576795' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 109) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 109', 109, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.579961' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 110) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 110', 110, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.588691' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 111) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 111', 111, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.591938' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 112) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 112', 112, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.594940' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 113) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 113', 113, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.597947' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 114) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 114', 114, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:19.601045' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 115) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 115', 115, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:19', '2023-08-15 14:35:19')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:35:19', '2023-08-15 14:35:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:19' WHERE `fe_pages`.`id` = 6  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-08-15 14:35:19', '2023-08-15 14:35:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:19' WHERE `fe_pages`.`id` = 6  (1.0ms) COMMIT Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.6ms) UPDATE `fe_answers` SET `value` = 'match' WHERE `fe_answers`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 38', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', TRUE) Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 39', TRUE, TRUE, '2023-08-15 14:35:19', '2023-08-15 14:35:19', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 40', TRUE, TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20', TRUE) Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.6ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (9.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (8.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (9.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.197851' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 116) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 116', 116, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.202915' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 117) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 117', 117, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.206463' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 118) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 118', 118, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.209599' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 119) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 119', 119, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.212714' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 120) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 120', 120, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 41', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:20' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.5ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.411514' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 121) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 121', 121, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.415764' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 122) Fe::Page Create (0.6ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 122', 122, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.420553' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 123) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 123', 123, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.423674' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 124) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 124', 124, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.426746' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 125) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 125', 125, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 42', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:20' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 43', TRUE, TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.749559' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 126) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 126', 126, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 44', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:20' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 45', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.3ms) COMMIT Fe::Page Update (1.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (46.5ms) TRUNCATE TABLE `phone_numbers`  (10.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:20.983041' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 127) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 127', 127, '2023-08-15 14:35:20', '2023-08-15 14:35:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 46', TRUE, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:20', '2023-08-15 14:35:20') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 47', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (18.1ms) TRUNCATE TABLE `fe_applications`  (13.3ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (69.4ms) TRUNCATE TABLE `fe_users`  (14.2ms) TRUNCATE TABLE `phone_numbers`  (9.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.9ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 48', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:21.258947' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 128) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 128', 128, '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:21.264886' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 129', 129, '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 49', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 50', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21', 'test') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 51', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:21.475256' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 130) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 130', 130, '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (1.0ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'nomatch', '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 52', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 53', TRUE, 0, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::QuestionGrid Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 54', TRUE, 1, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:21.715658' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 131) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 131', 131, '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::QuestionGrid Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.2ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 54', TRUE, 2, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 55', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 56', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 57', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:21.910180' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 132) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 132', 132, '2023-08-15 14:35:21', '2023-08-15 14:35:21')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 57', TRUE, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-08-15 14:35:21', '2023-08-15 14:35:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:21' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (11.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 58', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (3.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 59', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 60', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT Fe::Question Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionGrid Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 61', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 62', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 63', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 64', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (32.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_answers`  (9.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.8ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 65', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 66', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 67', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 4) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 68', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid conditional visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 2, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (11.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 69', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 70', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 71', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 4) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 72', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 73', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 1, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 74', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:22' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 75', TRUE, '2023-08-15 14:35:22', '2023-08-15 14:35:22', 4) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:23' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 76', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:23' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.1ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `content_translations`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 77', '1\r\n2', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23', '---\nfr: \'\'\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 78', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 79', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (12.9ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 80', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23') Fe::Page Load (4.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 81', TRUE, 'a 1 2', '2023-08-15 14:35:23', '2023-08-15 14:35:23') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-08-15 14:35:23', '2023-08-15 14:35:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:23', '2023-08-15 14:35:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:23', '2023-08-15 14:35:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 82', TRUE, '2023-08-15 14:35:23', '2023-08-15 14:35:23', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-08-15 14:35:23', '2023-08-15 14:35:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:23.896285' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 133) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 133', 133, '2023-08-15 14:35:23', '2023-08-15 14:35:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 133) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:23.900734' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 133) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:23', '2023-08-15 14:35:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:23' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:35:23', '2023-08-15 14:35:23')  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 83', TRUE, '2023-08-15 14:35:24', '2023-08-15 14:35:24', 'a;b') Fe::Page Load (3.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:24.075771' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 134) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 134', 134, '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 134) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:24.081562' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 134) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:24', '2023-08-15 14:35:24') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:24' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (2.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.9ms) COMMIT Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.2ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:24.489882' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 135) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 135', 135, '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:24', '2023-08-15 14:35:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 84', TRUE, '2023-08-15 14:35:24', '2023-08-15 14:35:24', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 84', TRUE, '2023-08-15 14:35:24', '2023-08-15 14:35:24', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:35:24', '2023-08-15 14:35:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:24' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT  (0.3ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `share` = FALSE WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (64.0ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (129.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (196.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (2.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (71.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (138.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (208.3ms) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (74.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (470.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (793.7ms) Completed 200 OK in 888ms (Views: 862.0ms | ActiveRecord: 10.2ms) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (14.3ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:25.537901' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 136) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 136', 136, '2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 85', TRUE, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:25' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (2.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (2.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (6.7ms) Completed 200 OK in 27ms (Views: 6.8ms | ActiveRecord: 6.1ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (11.9ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:25.717592' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 137) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 137', 137, '2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:25', '2023-08-15 14:35:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 86', TRUE, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 87', TRUE, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 88', TRUE, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 89', TRUE, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 90', TRUE, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:25' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:25' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:25', '2023-08-15 14:35:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:25' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Update (0.8ms) UPDATE `fe_page_elements` SET `position` = 2 WHERE `fe_page_elements`.`id` = 1  (0.6ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 2) Fe::PageElement Update All (0.4ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:35:25.811210' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 1) AND (`fe_page_elements`.`position` > 1) AND (`fe_page_elements`.`position` <= 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:25' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:35:25.828417' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:25' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 1 WHERE `fe_page_elements`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:25' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.3ms) Completed 200 OK in 66ms (Views: 0.8ms | ActiveRecord: 22.5ms) Fe::QuestionGrid Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:26.009207' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 138) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 138', 138, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 91', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 92', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 93', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 94', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 95', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 2 WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 1 WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 27ms (Views: 0.6ms | ActiveRecord: 8.8ms)  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (14.0ms) TRUNCATE TABLE `fe_elements`  (8.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:26.259882' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 139) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 139', 139, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 96', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (2.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:35:26.296837' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (8.7ms) Completed 200 OK in 38ms (Views: 9.1ms | ActiveRecord: 9.8ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (8.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:26.466660' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 140) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 140', 140, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:26.473522' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 141) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 141', 141, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 97', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 2  (1.0ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.4ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:35:26.522765' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (2.9ms) Completed 200 OK in 27ms (Views: 3.7ms | ActiveRecord: 10.4ms) Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:26.677632' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 142) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 142', 142, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 98', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.4ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-08-15 14:35:26.712772' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Condition Update All (0.7ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 Fe::Condition Update All (0.2ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 Fe::TextField Destroy (0.3ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.6ms) Completed 200 OK in 28ms (Views: 2.0ms | ActiveRecord: 14.2ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:26.863820' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 143) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 143', 143, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 99', TRUE, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:26', '2023-08-15 14:35:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:26' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (6.5ms) Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (14.2ms) Completed 200 OK in 28ms (Views: 14.1ms | ActiveRecord: 2.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:27.056498' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 144) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 144', 144, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 100', TRUE, '2023-08-15 14:35:27', '2023-08-15 14:35:27') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:27', '2023-08-15 14:35:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:27' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1) LIMIT 1  (0.3ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (6.7ms) Completed 200 OK in 39ms (Views: 17.5ms | ActiveRecord: 2.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:27.259144' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 145) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 145', 145, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.7ms) COMMIT  (2.0ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', TRUE, '2023-08-15 14:35:27', '2023-08-15 14:35:27') Fe::Page Load (2.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:27', '2023-08-15 14:35:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:27' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (10.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (6.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (12.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (18.6ms) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (33.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (51.1ms) Completed 200 OK in 88ms (Views: 50.8ms | ActiveRecord: 9.2ms)  (1.2ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.8ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:27.505484' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 146) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 146', 146, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN  (0.4ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.4ms) Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM `fe_elements`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:27.657142' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 147) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 147', 147, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 101', TRUE, '2023-08-15 14:35:27', '2023-08-15 14:35:27', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 102', TRUE, '2023-08-15 14:35:27', '2023-08-15 14:35:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:27', '2023-08-15 14:35:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:27' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:27', '2023-08-15 14:35:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:27' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (1.3ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = FALSE AND `fe_elements`.`share` = TRUE AND `fe_elements`.`style` = 'style' ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (1.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (76.4ms) Completed 200 OK in 162ms (Views: 77.3ms | ActiveRecord: 1.8ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-08-15 14:35:27', '2023-08-15 14:35:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:28.000729' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 148', 148, '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 103', TRUE, '2023-08-15 14:35:28', '2023-08-15 14:35:28') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:28', '2023-08-15 14:35:28') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:28' WHERE `fe_pages`.`id` = 1  (25.7ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (2.0ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (2.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (2.7ms) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (7.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (8.6ms) Completed 200 OK in 31ms (Views: 8.1ms | ActiveRecord: 4.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (13.8ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (1.8ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_1', 'fn_1', 'ln_1', 'phone_1', 'email_1@email.com', 'created', '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (1.0ms) COMMIT Fe::Person Load (0.7ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:35:28', '2023-08-15 14:35:28', 1) Fe::Page Load (3.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:35:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:28', '2023-08-15 14:35:28')  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 1, 'relationship_2', 'fn_2', 'ln_2', 'phone_2', 'email_2@email.com', 'created', '2023-08-15 14:35:28', '2023-08-15 14:35:28', 1) Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:28' WHERE `fe_references`.`id` = 1  (11.6ms) COMMIT  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (17.8ms) TRUNCATE TABLE `fe_addresses`  (11.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.7ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_3', 'fn_3', 'ln_3', 'phone_3', 'email_3@email.com', 'created', '2023-08-15 14:35:28', '2023-08-15 14:35:28')  (0.7ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (66.4ms) TRUNCATE TABLE `fe_email_templates`  (18.1ms) TRUNCATE TABLE `fe_page_elements`  (8.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (13.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.7ms) INSERT INTO `fe_references` (`relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES ('relationship_4', 'fn_4', 'ln_4', 'phone_4', 'email_4@email.com', 'created', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 104', TRUE, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::Person Create (1.6ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.6ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_5', 'fn_5', 'ln_5', 'phone_5', 'email_5@email.com', 'created', '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`id` = 1  (23.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 105', TRUE, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 106', TRUE, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_6', 'fn_6', 'ln_6', 'phone_6', 'email_6@email.com', 'created', '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 107', TRUE, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'some text response', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:29.561476' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 149) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 149', 149, '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 149) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:29.567337' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 149) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 108', TRUE, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:29' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:29', '2023-08-15 14:35:29', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:35:29', 'relationship_7', 'fn_7', 'ln_7', 'phone_7', 'email_7@email.com', 'started', '2023-08-15 14:35:29', '2023-08-15 14:35:29', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (2.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`id` = 1  (11.8ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (0.8ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.9ms) COMMIT Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:29.796762' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 150) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 150', 150, '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 150) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:29.802448' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 150) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 109', TRUE, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:29', '2023-08-15 14:35:29') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:29' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:29', '2023-08-15 14:35:29', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:35:29', 'relationship_8', 'fn_8', 'ln_8', 'phone_8', 'email_8@email.com', 'started', '2023-08-15 14:35:29', '2023-08-15 14:35:29', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:29' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'e1c10a319142cfbdf2bf6c235580d2c2' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'e1c10a319142cfbdf2bf6c235580d2c2', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.7ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:29.994808' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 151', 151, '2023-08-15 14:35:29', '2023-08-15 14:35:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 151) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.000076' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 151) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 110', TRUE, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:30', '2023-08-15 14:35:30', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:35:30', 'relationship_9', 'fn_9', 'ln_9', 'phone_9', 'email_9@email.com', 'started', '2023-08-15 14:35:30', '2023-08-15 14:35:30', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`id` = 1  (12.4ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (5.0ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.6ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT Fe::ReferenceSheet Update (1.0ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.214552' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 152) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 152', 152, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 152) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.220286' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 152) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 111', TRUE, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:30', '2023-08-15 14:35:30', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:35:30', 'relationship_10', 'fn_10', 'ln_10', 'phone_10', 'email_10@email.com', 'started', '2023-08-15 14:35:30', '2023-08-15 14:35:30', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c52ab295ee442b7f0a764d875191176e' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'c52ab295ee442b7f0a764d875191176e', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (10.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.424286' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 153) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 153', 153, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 153) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.430471' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 153) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 112', TRUE, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:30', '2023-08-15 14:35:30', 1) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.4ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-08-15 13:35:30', 'relationship_11', 'fn_11', 'ln_11', 'phone_11', 'email_11@email.com', 'started', '2023-08-15 14:35:30', '2023-08-15 14:35:30', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.8ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `status` = 'created' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b6f0a943742b695bc4420b99da4ff590' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `access_key` = 'b6f0a943742b695bc4420b99da4ff590', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (10.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.635564' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 154) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 154', 154, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.640430' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 155) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 155', 155, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.643857' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 156) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 156', 156, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.647143' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 157) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 157', 157, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.650453' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 158) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 158', 158, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:35:30', '2023-08-15 14:35:30', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (3.0ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 3, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.7ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_12', 'fn_12', 'ln_12', 'phone_12', 'email_12@email.com', 'created', '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`id` = 1  (1.2ms) COMMIT Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.8ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.916603' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 159) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 159', 159, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.920857' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 160) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 160', 160, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.924415' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 161) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 161', 161, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.927765' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 162) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 162', 162, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:30.930841' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 163) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 163', 163, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:30', '2023-08-15 14:35:30', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:30' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:30' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:30', '2023-08-15 14:35:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_13', 'fn_13', 'ln_13', 'phone_13', 'email_13@email.com', 'created', '2023-08-15 14:35:30', '2023-08-15 14:35:30') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.161106' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 164) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 164', 164, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.165312' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 165) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 165', 165, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.168382' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 166) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 166', 166, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (1.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.172380' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 167) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 167', 167, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.175475' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 168) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 168', 168, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:31', '2023-08-15 14:35:31', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:31' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:31' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_14', 'fn_14', 'ln_14', 'phone_14', 'email_14@email.com', 'created', '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`id` = 1  (6.5ms) COMMIT Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.429670' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 169) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 169', 169, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.434416' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 170) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 170', 170, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.437707' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 171) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 171', 171, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.440878' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 172) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 172', 172, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.443998' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 173) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 173', 173, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:31' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:35:31', '2023-08-15 14:35:31', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:31' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_15', 'fn_15', 'ln_15', 'phone_15', 'email_15@email.com', 'created', '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (14.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.691243' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 174) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 174', 174, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.695521' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 175) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 175', 175, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.698919' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 176) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 176', 176, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.702281' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 177) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 177', 177, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.705424' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 178) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 178', 178, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 113', TRUE, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:31', '2023-08-15 14:35:31', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (1.0ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:31' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 114', TRUE, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:31' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.799113' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 179) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 179', 179, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.802535' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 180) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 180', 180, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.805672' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 181) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 181', 181, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.808750' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 182) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 182', 182, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:31.811661' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 183) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 183', 183, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:35:31', '2023-08-15 14:35:31')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_16', 'fn_16', 'ln_16', 'phone_16', 'email_16@email.com', 'created', '2023-08-15 14:35:31', '2023-08-15 14:35:31') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143531000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:31' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.8ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-08-15 14:35:32' WHERE `fe_answers`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (22.7ms) TRUNCATE TABLE `fe_conditions`  (14.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.020834' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 184) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 184', 184, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.025943' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 185) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 185', 185, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.029604' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 186) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 186', 186, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.033073' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 187) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 187', 187, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.036376' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 188) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 188', 188, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 115', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 116', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.124358' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 189) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 189', 189, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.127691' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 190) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 190', 190, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.131010' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 191) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 191', 191, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.134100' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 192) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 192', 192, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.137109' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 193) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 193', 193, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_17', 'fn_17', 'ln_17', 'phone_17', 'email_17@email.com', 'created', '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`id` = 1  (6.5ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `visible` = FALSE, `visibility_cache_key` = 'something' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143533000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (13.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.335630' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 194) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 194', 194, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.340636' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 195) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 195', 195, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.344027' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 196) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 196', 196, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.347378' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 197) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 197', 197, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.350623' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 198) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 198', 198, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 117', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 118', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.439595' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 199) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 199', 199, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.443388' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 200) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 200', 200, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.446563' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 201) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 201', 201, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.449654' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 202) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 202', 202, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.452727' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 203) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 203', 203, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_18', 'fn_18', 'ln_18', 'phone_18', 'email_18@email.com', 'created', '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143533000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.629200' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 204) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 204', 204, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.633315' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 205) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 205', 205, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.636687' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 206) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 206', 206, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.640000' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 207) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 207', 207, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.643107' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 208) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 208', 208, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (3.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 119', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 120', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:33', '2023-08-15 14:35:33')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.733879' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 209) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 209', 209, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.737460' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 210) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 210', 210, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.740491' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 211) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 211', 211, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.743545' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 212) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 212', 212, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.746756' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 213) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 213', 213, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_19', 'fn_19', 'ln_19', 'phone_19', 'email_19@email.com', 'created', '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `visible` = FALSE WHERE `fe_references`.`id` = 1  (0.3ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230815143533000000', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.925347' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 214) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 214', 214, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.930097' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 215) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 215', 215, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.933617' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 216) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 216', 216, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.936671' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 217) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 217', 217, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:33.939775' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 218) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 218', 218, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:33' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_20', 'fn_20', 'ln_20', 'phone_20', 'email_20@email.com', 'created', '2023-08-15 14:35:33', '2023-08-15 14:35:33') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:35:33' WHERE `fe_references`.`id` = 1  (11.8ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.156632' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 219) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 219', 219, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.161132' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 220) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 220', 220, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.164615' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 221) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 221', 221, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.168075' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 222) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 222', 222, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.171095' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 223) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 223', 223, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-08-15 14:35:34', '2023-08-15 14:35:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:34', '2023-08-15 14:35:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:34' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_21', 'fn_21', 'ln_21', 'phone_21', 'email_21@email.com', 'created', '2023-08-15 14:35:34', '2023-08-15 14:35:34') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (3.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`id` = 1  (11.7ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.390468' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 224) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 224', 224, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.395290' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 225) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 225', 225, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.398837' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 226) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 226', 226, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.401864' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 227) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 227', 227, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:34.405165' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 228) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 228', 228, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', FALSE, '2023-08-15 14:35:34', '2023-08-15 14:35:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.7ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_22', 'fn_22', 'ln_22', 'phone_22', 'email_22@email.com', 'created', '2023-08-15 14:35:34', '2023-08-15 14:35:34') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '1b9a920d447ff7378e7fb2c1d59da619' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '271f272b6d1bb3475aec8d25331b57df' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'f6166921d95b7e293856506174e6334d' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '914bc6cae6284c220db38d0840045cab' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'e00c5ed46ff6743a367ea59d58eb6bf4' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '49218431dc7036cd6376bec9b3504e25' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '8bbedaf19cfa7928c6d16c35581a47e5' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b3328f00c4a31fb38e9b785f7282bb19' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '1d0e72b8f46541f96d985030fcf6102f' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'a0334ca2549ee2df20e73e81f54a7039' LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:34', '2023-08-15 14:35:34', 1) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 'relationship_23', 'fn_23', 'ln_23', 'phone_23', 'email_23@email.com', 'created', '2023-08-15 14:35:34', '2023-08-15 14:35:34', 1) Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Update (0.3ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-08-15 14:35:34', '2023-08-15 14:35:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Update (0.3ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:34', '2023-08-15 14:35:34') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (13.9ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:35', '2023-08-15 14:35:35') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Paragraph Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'Lorem ipsum...', '2023-08-15 14:35:35', '2023-08-15 14:35:35') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (8.4ms) TRUNCATE TABLE `fe_users`  (8.9ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Paragraph Create (3.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'abc', '2023-08-15 14:35:35', '2023-08-15 14:35:35') Fe::Page Load (2.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (64.6ms) TRUNCATE TABLE `fe_conditions`  (12.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (11.8ms) TRUNCATE TABLE `users`  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.6ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (4.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 121', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:35', '2023-08-15 14:35:35', 'a; b\n') Fe::Page Load (2.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:35.570880' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 229) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 229', 229, '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 229) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:35.575416' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 229) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:35', '2023-08-15 14:35:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:35' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.9ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 122', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:35', '2023-08-15 14:35:35', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:35.752576' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 230) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 230', 230, '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 230) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:35.757382' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 230) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:35', '2023-08-15 14:35:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:35' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 123', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:35', '2023-08-15 14:35:35', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:35.929513' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 231) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 231', 231, '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 231) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:35.934225' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 231) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:35', '2023-08-15 14:35:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:35' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (2.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-08-15 14:35:35', '2023-08-15 14:35:35')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-08-15 14:35:36', '2023-08-15 14:35:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:36', '2023-08-15 14:35:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:36', '2023-08-15 14:35:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 124', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-08-15 14:35:36', '2023-08-15 14:35:36', '') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-08-15 14:35:36', '2023-08-15 14:35:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:36.115301' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 232) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 232', 232, '2023-08-15 14:35:36', '2023-08-15 14:35:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 232) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:36.119895' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 232) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:36', '2023-08-15 14:35:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:36' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (8.7ms) TRUNCATE TABLE `fe_pages`  (9.5ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.9ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (59.9ms) TRUNCATE TABLE `fe_page_elements`  (9.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (13.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:35:38', '2023-08-15 14:35:38')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 194.6ms  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (13.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:35:38', '2023-08-15 14:35:38')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.6ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (33.0ms) TRUNCATE TABLE `fe_question_sheets`  (76.2ms) TRUNCATE TABLE `fe_references`  (13.3ms) TRUNCATE TABLE `fe_users`  (10.5ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:35:38', '2023-08-15 14:35:38')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.7ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (19.7ms) TRUNCATE TABLE `fe_applications`  (14.9ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (8.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:35:39', '2023-08-15 14:35:39')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.1ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:35:39', '2023-08-15 14:35:39')  (0.4ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.7ms  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.2ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-08-15 14:35:39', '2023-08-15 14:35:39')  (0.4ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-08-15 14:35:39', '2023-08-15 14:35:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:39.492289' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 233) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 233', 233, '2023-08-15 14:35:39', '2023-08-15 14:35:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:39.496755' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 234) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 234', 234, '2023-08-15 14:35:39', '2023-08-15 14:35:39')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.8ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb [2 times] (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (5.1ms) Fe::Element Load (3.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (5.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin (23.4ms) Completed 200 OK in 588ms (Views: 578.1ms | ActiveRecord: 3.8ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (8.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-08-15 14:35:40', '2023-08-15 14:35:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', TRUE, '2023-08-15 14:35:40', '2023-08-15 14:35:40')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = FALSE ORDER BY label Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = TRUE ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin (3.9ms) Completed 200 OK in 14ms (Views: 7.5ms | ActiveRecord: 1.2ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', TRUE, '2023-08-15 14:35:40', '2023-08-15 14:35:40')  (0.7ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) BEGIN Fe::QuestionSheet Update (0.6ms) UPDATE `fe_question_sheets` SET `archived` = FALSE WHERE `fe_question_sheets`.`id` = 1  (0.7ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 2.1ms) Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-08-15 14:35:40', '2023-08-15 14:35:40')  (0.6ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112 - COPY', '2023-08-15 14:35:40', '2023-08-15 14:35:40')  (0.6ms) COMMIT Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 2.6ms)  (0.7ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (8.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-08-15 14:35:40', '2023-08-15 14:35:40')  (0.9ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = TRUE WHERE `fe_question_sheets`.`id` = 1  (0.6ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (6.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 125', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 126', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 127', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 128', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 129', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 130', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 131', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 132', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:41', '2023-08-15 14:35:41')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AttachmentField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'section', 'Label Element 133', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `attachment_file_name`, `created_at`, `updated_at`) VALUES (1, 3, 'test_file', 'test_file', '2023-08-15 14:35:41', '2023-08-15 14:35:41')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.4ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (8.6ms) TRUNCATE TABLE `fe_question_sheets`  (12.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 134', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 135', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 136', TRUE, '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 137', TRUE, 'test', '2023-08-15 14:35:41', '2023-08-15 14:35:41') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-08-15 14:35:41', '2023-08-15 14:35:41')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:41.996874' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 235) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 235', 235, '2023-08-15 14:35:41', '2023-08-15 14:35:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.000282' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 236) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 236', 236, '2023-08-15 14:35:41', '2023-08-15 14:35:41')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.003500' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 237) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 237', 237, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.007025' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 238) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 238', 238, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.010145' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 239) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 239', 239, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:42' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 138', TRUE, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.040968' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 240) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 240', 240, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.044178' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 241) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 241', 241, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.047223' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 242) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 242', 242, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.050151' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 243) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 243', 243, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.053465' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 244) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 244', 244, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:42' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `slug` = 'test' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.3ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 139', TRUE, 'test', '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.218902' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 245) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 245', 245, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.222196' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 246) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 246', 246, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.225398' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 247) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 247', 247, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.228571' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 248) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 248', 248, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (6.1ms) COMMIT  (0.5ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.240615' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 249) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 249', 249, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (16.4ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:42' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 140', TRUE, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:42' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.821490' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 250) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 250', 250, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.826341' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 251) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 251', 251, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.830120' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 252) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 252', 252, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.833638' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 253) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 253', 253, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.837003' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 254) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 254', 254, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 141', TRUE, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:42' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:42' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:42' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 142', TRUE, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:42' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:42', '2023-08-15 14:35:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:42' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:42' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (2.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.908353' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 255) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 255', 255, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.911908' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 256) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 256', 256, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.915433' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 257) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 257', 257, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.918936' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 258', 258, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:42.922472' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 259) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 259', 259, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:42', '2023-08-15 14:35:42')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (9.7ms) TRUNCATE TABLE `fe_conditions`  (9.8ms) TRUNCATE TABLE `fe_elements`  (6.3ms) TRUNCATE TABLE `fe_email_templates`  (6.7ms) TRUNCATE TABLE `fe_page_elements`  (6.1ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (5.8ms) TRUNCATE TABLE `fe_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (5.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.047458' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 260) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 260', 260, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.052345' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 261) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 261', 261, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.056229' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 262) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 262', 262, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.059759' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 263) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 263', 263, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.063309' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 264) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 264', 264, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 143', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 144', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.122375' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 265) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 265', 265, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.126069' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 266) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 266', 266, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.129360' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 267) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 267', 267, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.132558' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 268) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 268', 268, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.135887' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 269) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 269', 269, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.270951' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 270) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 270', 270, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.275464' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 271) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 271', 271, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.279200' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 272) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 272', 272, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.282415' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 273) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 273', 273, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.285427' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 274) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 274', 274, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 145', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 146', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.348340' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 275) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 275', 275, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.351493' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 276) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 276', 276, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.354492' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 277) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 277', 277, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.357639' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 278) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 278', 278, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.360547' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 279) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 279', 279, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.496136' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 280) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 280', 280, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.500709' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 281) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 281', 281, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.504047' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 282) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 282', 282, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.507670' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 283) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 283', 283, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.510625' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 284) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 284', 284, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 147', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 148', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.576030' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 285) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 285', 285, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.579384' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 286) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 286', 286, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.582509' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 287) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 287', 287, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.585634' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 288) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 288', 288, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.588820' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 289) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 289', 289, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.723052' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 290) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 290', 290, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.727707' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 291) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 291', 291, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.731237' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 292) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 292', 292, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.734542' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 293) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 293', 293, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.737638' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 294) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 294', 294, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 149', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 150', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:43' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.804787' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 295) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 295', 295, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.811827' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 296) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 296', 296, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.815723' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 297) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 297', 297, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.821042' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 298) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 298', 298, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.825490' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 299) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 299', 299, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.834872' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 300) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 300', 300, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.838090' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 301) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 301', 301, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.841351' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 302) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 302', 302, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.844445' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 303) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 303', 303, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:43.847521' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 304) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 304', 304, '2023-08-15 14:35:43', '2023-08-15 14:35:43')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:35:43', '2023-08-15 14:35:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:43' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 12  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.251413' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 305) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 305', 305, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.255837' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 306) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 306', 306, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.259152' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 307) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 307', 307, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.262462' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 308) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 308', 308, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.265563' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 309) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 309', 309, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 151', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 152', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.333257' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 310) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 310', 310, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.337693' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 311) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 311', 311, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.342655' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 312) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 312', 312, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.345922' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 313) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 313', 313, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.348857' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 314) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 314', 314, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.356634' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 315) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 315', 315, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.359801' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 316) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 316', 316, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.362953' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 317) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 317', 317, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.366065' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 318) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 318', 318, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.369114' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 319) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 319', 319, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 11  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 12  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.767862' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 320) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 320', 320, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.772480' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 321) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 321', 321, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.775793' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 322) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 322', 322, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.778948' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 323) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 323', 323, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.782245' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 324) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 324', 324, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 153', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 154', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.848504' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 325) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 325', 325, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.851720' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 326) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 326', 326, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.854791' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 327) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 327', 327, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.857857' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 328) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 328', 328, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.860942' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 329) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 329', 329, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.869042' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 330) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 330', 330, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.872429' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 331) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 331', 331, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.875790' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 332) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 332', 332, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.878827' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 333) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 333', 333, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:44.881962' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 334) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 334', 334, '2023-08-15 14:35:44', '2023-08-15 14:35:44')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (12.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-08-15 14:35:44', '2023-08-15 14:35:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:44' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 11  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 12  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.4ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (17.2ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (13.6ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (1.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.4ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (15.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.351008' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 335) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 335', 335, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.358635' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 336) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 336', 336, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.362945' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 337) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 337', 337, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.366163' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 338) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 338', 338, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.369501' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 339) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 339', 339, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 155', TRUE, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 156', TRUE, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.433091' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 340) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 340', 340, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.436325' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 341) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 341', 341, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.439294' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 342) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 342', 342, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.442402' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 343) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 343', 343, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.445656' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 344) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 344', 344, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (35.7ms) TRUNCATE TABLE `fe_addresses`  (10.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.622349' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 345) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 345', 345, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.626984' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 346) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 346', 346, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.630658' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 347) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 347', 347, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.633997' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 348) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 348', 348, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.637226' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 349) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 349', 349, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 157', TRUE, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 158', TRUE, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.712692' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 350) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 350', 350, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.717247' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 351', 351, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.721169' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 352) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 352', 352, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.724671' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 353) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 353', 353, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:45.728873' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 354) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 354', 354, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 159', TRUE, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:45', '2023-08-15 14:35:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:45' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (37.3ms) TRUNCATE TABLE `fe_addresses`  (9.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:45', '2023-08-15 14:35:45')  (0.5ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 92c5beff-8546-4950-bf50-352fbdae8f37) to Test(default) with arguments: #>, [1] Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.084366' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 355) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 355', 355, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.091071' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 356) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 356', 356, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.095571' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 357) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 357', 357, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.100327' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 358) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 358', 358, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (1.2ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.104624' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 359) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 359', 359, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 160', TRUE, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 161', TRUE, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:46' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.183386' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 360) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 360', 360, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.187904' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 361) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 361', 361, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.191753' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 362) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 362', 362, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.195378' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 363) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 363', 363, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.198997' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 364) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 364', 364, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 162', TRUE, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.496457' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 365) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 365', 365, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 163', TRUE, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.522982' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 366) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 366, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 164', TRUE, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:46' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:46', '2023-08-15 14:35:46', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:35:46' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_24', 'fn_24', 'ln_24', 'phone_24', 'initial@ref.com', 'created', '2023-08-15 14:35:46', '2023-08-15 14:35:46', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:46' WHERE `fe_references`.`id` = 1  (11.3ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"ref answer here"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'ref answer here', '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 73ffcf56-252e-4e1b-91af-32e13d508119) to Test(default) with arguments: #>, [2]  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (1.4ms) Completed 200 OK in 42ms (Views: 12.5ms | ActiveRecord: 6.2ms) Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.6ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.8ms) TRUNCATE TABLE `fe_addresses`  (10.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.770912' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 367) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 366', 367, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 165', TRUE, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_25', 'fn_25', 'ln_25', 'phone_25', 'initial@ref.com', 'created', '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"email"=>"email@reference.com", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "relationship"=>"roommate", "title"=>"A"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: d3fef3f6-38b4-460a-8c6d-b333d06e85e3) to Test(default) with arguments: #>, [1] Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '743eaca09befbada8268f471794fdd02' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = '743eaca09befbada8268f471794fdd02' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Update (0.3ms) UPDATE `fe_applications` SET `locale` = NULL WHERE `fe_applications`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 29ms (Views: 0.7ms | ActiveRecord: 9.5ms) Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.8ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:46.979805' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 368) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 367', 368, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 166', TRUE, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:46', '2023-08-15 14:35:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:47.008143' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 369) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 369, '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 167', TRUE, 'answer_sheet', 'email', '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:47' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-08-15 14:35:47', '2023-08-15 14:35:47', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-08-15 14:35:47' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_26', 'fn_26', 'ln_26', 'phone_26', 'initial@ref.com', 'created', '2023-08-15 14:35:47', '2023-08-15 14:35:47', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (2.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-08-15 14:35:47' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT Fe::ReferenceSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '44b229190011a95ac62a9e4989e11d6f' LIMIT 1  (0.3ms) BEGIN Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `access_key` = '44b229190011a95ac62a9e4989e11d6f', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"a"=>"44b229190011a95ac62a9e4989e11d6f", "answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"other@email.com"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'other@email.com' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.2ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 21bea8b6-b7b6-423d-aaf4-c7ab83adbdd0) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 19ms (Views: 0.7ms | ActiveRecord: 6.3ms) Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:47.226708' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 370) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 368', 370, '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.6ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.0ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (12.4ms) Completed 200 OK in 29ms (Views: 15.7ms | ActiveRecord: 6.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:47.398800' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 371) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 369', 371, '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 168', TRUE, TRUE, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:47' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 169', TRUE, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.2ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:47' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 170', TRUE, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:47' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.5ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (12.7ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (1.2ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (27.1ms) Completed 200 OK in 41ms (Views: 20.5ms | ActiveRecord: 9.5ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:47.650389' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 372) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 370', 372, '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 171', TRUE, TRUE, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:47' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 172', TRUE, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:47' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 173', TRUE, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:47', '2023-08-15 14:35:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:47' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:47', '2023-08-15 14:35:47')  (0.9ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.9ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (7.8ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (18.3ms) Completed 200 OK in 31ms (Views: 11.3ms | ActiveRecord: 11.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (11.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (13.6ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:48', '2023-08-15 14:35:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:35:48', '2023-08-15 14:35:48') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:48 UTC', '2023-08-15 14:35:48', '2023-08-15 14:35:48')  (0.8ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:48', '2023-08-15 14:35:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:35:48', '2023-08-15 14:35:48') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-08-15 14:35:48', '2023-08-15 14:35:48')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:48', '2023-08-15 14:35:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-08-15 14:35:48', '2023-08-15 14:35:48') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-08-15 14:35:48', '2023-08-15 14:35:48')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"content"=>"Content", "name"=>"Name", "subject"=>"Subject"}}  (0.2ms) BEGIN Fe::EmailTemplate Create (0.7ms) INSERT INTO `fe_email_templates` (`name`, `content`, `subject`, `created_at`, `updated_at`) VALUES ('Name', 'Content', 'Subject', '2023-08-15 14:35:49', '2023-08-15 14:35:49')  (0.7ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.8ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-08-15 14:35:49', '2023-08-15 14:35:49')  (0.5ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin (1.7ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (6.2ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (1.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin (10.6ms) Completed 200 OK in 18ms (Views: 13.8ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (8.6ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (9.8ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.044760' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 373) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 371', 373, '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 174', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 175', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 176', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 177', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.259058' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 374) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (2, 'Label Page 372', 374, '2023-08-15 14:35:50', '2023-08-15 14:35:50', '')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.266176' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 375) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (3, 'Label Page 373', 375, '2023-08-15 14:35:50', '2023-08-15 14:35:50', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 178', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 374) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.288684' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 374) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 375) AND (`fe_pages`.id != 2) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.292585' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 2) AND (`fe_pages`.`number` >= 375) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.430209' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 376) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 374', 376, '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 376) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.435711' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 376) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (4.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.581451' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 377) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 375', 377, '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 179', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 180', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.625580' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 378) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 376', 378, '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 181', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 3, 1, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 182', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 4, 2, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (14.6ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (2.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.800229' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 379) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 377', 379, '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (3.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 183', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 184', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 185', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 186', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:50.877497' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 380) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 378', 380, '2023-08-15 14:35:50', '2023-08-15 14:35:50')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 187', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 5, 1, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 2  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::TextField', 'short', 'Label Element 188', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::Section', 'section', 'Label Element 189', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 190', TRUE, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 8, 2, '2023-08-15 14:35:50', '2023-08-15 14:35:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:50' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (46.6ms) TRUNCATE TABLE `fe_email_templates`  (9.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:51.125789' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 381) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 379', 381, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 191', TRUE, '2023-08-15 14:35:51', '2023-08-15 14:35:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:51', '2023-08-15 14:35:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:51' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 192', TRUE, '2023-08-15 14:35:51', '2023-08-15 14:35:51') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 193', TRUE, '2023-08-15 14:35:51', '2023-08-15 14:35:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-08-15 14:35:51', '2023-08-15 14:35:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:51' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 194', TRUE, '2023-08-15 14:35:51', '2023-08-15 14:35:51') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:51.344690' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 382) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 380', 382, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.0ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb [1 times] (2.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (7.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (0.4ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.6ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGridWithTotal') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_submit_to.html.erb (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (31.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.5ms) Completed 200 OK in 69ms (Views: 47.2ms | ActiveRecord: 7.5ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Redirected to http://test.host/referrer Completed 302 Found in 5ms (ActiveRecord: 2.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Rendering html template within layouts/fe/application Rendered html template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 2.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-08-15 14:35:51', '2023-08-15 14:35:51') Fe::AnswerSheetQuestionSheet Create (0.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-08-15 14:35:51', '2023-08-15 14:35:51')  (0.5ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 9ms (ActiveRecord: 1.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 195', TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:52.023919' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 383) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 381', 383, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (0.9ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (5.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (12.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (16.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.2ms) Completed 200 OK in 44ms (Views: 23.8ms | ActiveRecord: 4.9ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:52.225517' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 384) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 382', 384, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 196', TRUE, TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 197', TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 198', TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.1ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (2.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [2 times] (6.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (9.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (9.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 11.1ms | ActiveRecord: 7.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (2.5ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:52.463472' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 385) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 383', 385, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 199', TRUE, TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 200', TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 201', TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (4.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (4.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 7.7ms | ActiveRecord: 4.7ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:52.700508' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 386) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 384', 386, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 202', TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:52.711820' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 387) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 385', 387, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (0.9ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (4.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (4.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 7.8ms | ActiveRecord: 4.2ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:52.896045' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 388) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 386', 388, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:52.900472' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 389) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 387', 389, TRUE, '2023-08-15 14:35:52', '2023-08-15 14:35:52')  (0.7ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-08-15 14:35:53.046695' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 390) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 388', 390, '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 203', TRUE, '2023-08-15 14:35:53', '2023-08-15 14:35:53') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-08-15 14:35:53', '2023-08-15 14:35:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-08-15 14:35:53' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-08-15 14:35:53' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_27', 'fn_27', 'ln_27', 'phone_27', 'email_24@email.com', 'created', '2023-08-15 14:35:53', '2023-08-15 14:35:53') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-08-15 14:35:53' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT  (0.4ms) BEGIN Fe::EmailTemplate Create (2.3ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::EmailTemplate Create (0.5ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (1.0ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"email"=>"email@email.com", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "relationship"=>"rel", "title"=>"title"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '19a437faa41d29d90b13aa60e7f167a2' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = '19a437faa41d29d90b13aa60e7f167a2' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.2ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms Sent mail to email@email.com (5.9ms) Date: Tue, 15 Aug 2023 10:35:53 -0400 From: info@example.com To: email@email.com Message-ID: <64db8d4920025_1e363fd993840eac7575@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.7ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 2.8ms Sent mail to email@email.com (1.9ms) Date: Tue, 15 Aug 2023 10:35:53 -0400 From: info@example.com To: email@email.com Message-ID: <64db8d4921e7e_1e363fd993840eac764c@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = '2023-08-15 14:35:53' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (1.0ms) Completed 200 OK in 161ms (Views: 71.0ms | ActiveRecord: 5.4ms) Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.9ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-08-15 14:35:53', '2023-08-15 14:35:53')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (3.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 7.5ms | ActiveRecord: 0.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-09-08 21:18:48', '2023-09-08 21:18:48')  (25.1ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 1) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 1', 1, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49')  (12.7ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf1', 1, 'short', 1, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (12.5ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis1', 1, 'short', '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (9.0ms) COMMIT  (0.4ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf2', 1, 'short', 1, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis2', 1, 'short', 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 1) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (17.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.9ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 2) Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:49', '2023-09-08 21:18:49')  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (0.9ms) select table_name from information_schema.views where table_schema = 'fe_test'  (52.7ms) TRUNCATE TABLE `fe_addresses`;  (33.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (28.6ms) TRUNCATE TABLE `fe_answers`;  (32.2ms) TRUNCATE TABLE `fe_applications`;  (36.3ms) TRUNCATE TABLE `fe_conditions`;  (52.4ms) TRUNCATE TABLE `fe_elements`;  (27.1ms) TRUNCATE TABLE `fe_email_templates`;  (32.1ms) TRUNCATE TABLE `fe_page_elements`;  (26.9ms) TRUNCATE TABLE `fe_pages`;  (20.8ms) TRUNCATE TABLE `fe_people`;  (25.3ms) TRUNCATE TABLE `fe_question_sheets`;  (37.9ms) TRUNCATE TABLE `fe_references`;  (12.9ms) TRUNCATE TABLE `fe_users`;  (23.0ms) TRUNCATE TABLE `phone_numbers`;  (31.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-09-08 21:18:49', '2023-09-08 21:18:49')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 2) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 2', 2, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf1', 1, 'short', 1, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis1', 1, 'short', '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (2.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf2', 1, 'short', 1, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis2', 1, 'short', 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 1) Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:18:49', '2023-09-08 21:18:49', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:49' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:49', '2023-09-08 21:18:49')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (30.8ms) TRUNCATE TABLE `fe_addresses`;  (30.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (32.9ms) TRUNCATE TABLE `fe_answers`;  (35.7ms) TRUNCATE TABLE `fe_applications`;  (38.0ms) TRUNCATE TABLE `fe_conditions`;  (28.6ms) TRUNCATE TABLE `fe_elements`;  (14.0ms) TRUNCATE TABLE `fe_email_templates`;  (21.7ms) TRUNCATE TABLE `fe_page_elements`;  (17.0ms) TRUNCATE TABLE `fe_pages`;  (12.8ms) TRUNCATE TABLE `fe_people`;  (25.4ms) TRUNCATE TABLE `fe_question_sheets`;  (55.5ms) TRUNCATE TABLE `fe_references`;  (37.2ms) TRUNCATE TABLE `fe_users`;  (23.4ms) TRUNCATE TABLE `phone_numbers`;  (16.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-09-08 21:18:50', '2023-09-08 21:18:50')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 3) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 3', 3, 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf1', 1, 'short', 1, 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis1', 1, 'short', '2023-09-08 21:18:50', '2023-09-08 21:18:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (5.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf2', 1, 'short', 1, 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis2', 1, 'short', 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:50' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:18:50', '2023-09-08 21:18:50', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:50' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:18:50', '2023-09-08 21:18:50', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:50' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:18:50', '2023-09-08 21:18:50', 4) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:50' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:50', '2023-09-08 21:18:50')  (0.5ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN SQL (0.7ms) UPDATE `fe_elements` SET `created_at` = '2023-09-08 21:18:50', `updated_at` = '2023-09-08 21:18:50', `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'choice 1', 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (14.5ms) COMMIT  (0.4ms) BEGIN SQL (0.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:50', '2023-09-08 21:18:50')  (1.0ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.4ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'choice 1', 2, '2023-09-08 21:18:50', '2023-09-08 21:18:50') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (40.6ms) TRUNCATE TABLE `fe_addresses`;  (28.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (23.2ms) TRUNCATE TABLE `fe_answers`;  (30.6ms) TRUNCATE TABLE `fe_applications`;  (48.2ms) TRUNCATE TABLE `fe_conditions`;  (36.1ms) TRUNCATE TABLE `fe_elements`;  (22.3ms) TRUNCATE TABLE `fe_email_templates`;  (44.6ms) TRUNCATE TABLE `fe_page_elements`;  (18.9ms) TRUNCATE TABLE `fe_pages`;  (23.7ms) TRUNCATE TABLE `fe_people`;  (20.1ms) TRUNCATE TABLE `fe_question_sheets`;  (45.6ms) TRUNCATE TABLE `fe_references`;  (25.1ms) TRUNCATE TABLE `fe_users`;  (57.2ms) TRUNCATE TABLE `phone_numbers`;  (30.6ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN SQL (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-09-08 21:18:50', '2023-09-08 21:18:50')  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (1.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 4) SQL (0.5ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 4', 4, 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50')  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (3.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf1', 1, 'short', 1, 1, '2023-09-08 21:18:50', '2023-09-08 21:18:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis1', 1, 'short', '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (3.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf2', 1, 'short', 1, 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis2', 1, 'short', 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (5.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.3ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:51', '2023-09-08 21:18:51')  (0.5ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('', 1, 2, '2023-09-08 21:18:51', '2023-09-08 21:18:51')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (26.4ms) TRUNCATE TABLE `fe_addresses`;  (24.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (34.5ms) TRUNCATE TABLE `fe_answers`;  (24.8ms) TRUNCATE TABLE `fe_applications`;  (38.9ms) TRUNCATE TABLE `fe_conditions`;  (46.3ms) TRUNCATE TABLE `fe_elements`;  (34.2ms) TRUNCATE TABLE `fe_email_templates`;  (30.6ms) TRUNCATE TABLE `fe_page_elements`;  (21.3ms) TRUNCATE TABLE `fe_pages`;  (16.9ms) TRUNCATE TABLE `fe_people`;  (28.9ms) TRUNCATE TABLE `fe_question_sheets`;  (97.4ms) TRUNCATE TABLE `fe_references`;  (34.9ms) TRUNCATE TABLE `fe_users`;  (30.8ms) TRUNCATE TABLE `phone_numbers`;  (20.8ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (2.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-09-08 21:18:51', '2023-09-08 21:18:51')  (1.2ms) COMMIT  (0.2ms) BEGIN SQL (1.9ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 5) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 5', 5, 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf1', 1, 'short', 1, 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis1', 1, 'short', '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (4.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf2', 1, 'short', 1, 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis2', 1, 'short', 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:18:51', '2023-09-08 21:18:51', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:51' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:51', '2023-09-08 21:18:51')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.3ms) BEGIN SQL (0.4ms) UPDATE `fe_elements` SET `created_at` = '2023-09-08 21:18:51', `updated_at` = '2023-09-08 21:18:51', `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('choice 1', 1, 2, '2023-09-08 21:18:51', '2023-09-08 21:18:51')  (0.7ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'choice 2', 1, '2023-09-08 21:18:51', '2023-09-08 21:18:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (22.4ms) TRUNCATE TABLE `fe_addresses`;  (22.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (28.4ms) TRUNCATE TABLE `fe_answers`;  (42.7ms) TRUNCATE TABLE `fe_applications`;  (41.7ms) TRUNCATE TABLE `fe_conditions`;  (44.8ms) TRUNCATE TABLE `fe_elements`;  (20.6ms) TRUNCATE TABLE `fe_email_templates`;  (24.1ms) TRUNCATE TABLE `fe_page_elements`;  (28.1ms) TRUNCATE TABLE `fe_pages`;  (18.7ms) TRUNCATE TABLE `fe_people`;  (21.5ms) TRUNCATE TABLE `fe_question_sheets`;  (35.5ms) TRUNCATE TABLE `fe_references`;  (32.9ms) TRUNCATE TABLE `fe_users`;  (21.6ms) TRUNCATE TABLE `phone_numbers`;  (27.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-09-08 21:18:52', '2023-09-08 21:18:52')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 6) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 6', 6, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf1', 1, 'short', 1, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis1', 1, 'short', '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (2.1ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf2', 1, 'short', 1, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis2', 1, 'short', 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:52', '2023-09-08 21:18:52')  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.5ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'a text response', 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (25.8ms) TRUNCATE TABLE `fe_addresses`;  (22.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (30.2ms) TRUNCATE TABLE `fe_answers`;  (42.2ms) TRUNCATE TABLE `fe_applications`;  (39.1ms) TRUNCATE TABLE `fe_conditions`;  (44.3ms) TRUNCATE TABLE `fe_elements`;  (19.1ms) TRUNCATE TABLE `fe_email_templates`;  (37.5ms) TRUNCATE TABLE `fe_page_elements`;  (18.3ms) TRUNCATE TABLE `fe_pages`;  (22.4ms) TRUNCATE TABLE `fe_people`;  (27.3ms) TRUNCATE TABLE `fe_question_sheets`;  (49.6ms) TRUNCATE TABLE `fe_references`;  (16.3ms) TRUNCATE TABLE `fe_users`;  (23.3ms) TRUNCATE TABLE `phone_numbers`;  (26.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-09-08 21:18:52', '2023-09-08 21:18:52')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 7) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 7', 7, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf1', 1, 'short', 1, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis1', 1, 'short', '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (3.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'conf2', 1, 'short', 1, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'vis2', 1, 'short', 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:18:52', '2023-09-08 21:18:52', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:52' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:52', '2023-09-08 21:18:52')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('a text response', 1, 2, '2023-09-08 21:18:52', '2023-09-08 21:18:52')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response', `updated_at` = '2023-09-08 21:18:52' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (22.6ms) TRUNCATE TABLE `fe_addresses`;  (36.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (37.1ms) TRUNCATE TABLE `fe_answers`;  (19.4ms) TRUNCATE TABLE `fe_applications`;  (42.4ms) TRUNCATE TABLE `fe_conditions`;  (54.9ms) TRUNCATE TABLE `fe_elements`;  (25.1ms) TRUNCATE TABLE `fe_email_templates`;  (17.4ms) TRUNCATE TABLE `fe_page_elements`;  (18.6ms) TRUNCATE TABLE `fe_pages`;  (28.0ms) TRUNCATE TABLE `fe_people`;  (29.0ms) TRUNCATE TABLE `fe_question_sheets`;  (51.3ms) TRUNCATE TABLE `fe_references`;  (21.4ms) TRUNCATE TABLE `fe_users`;  (22.1ms) TRUNCATE TABLE `phone_numbers`;  (25.2ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', 1, '2023-09-08 21:18:53', '2023-09-08 21:18:53')  (0.8ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) UPDATE `fe_question_sheets` SET `archived` = 0, `updated_at` = '2023-09-08 21:18:53' WHERE `fe_question_sheets`.`id` = 1  (18.4ms) COMMIT Redirected to / Completed 302 Found in 22ms (ActiveRecord: 19.5ms) Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (48.0ms) TRUNCATE TABLE `fe_addresses`;  (36.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (36.9ms) TRUNCATE TABLE `fe_answers`;  (27.7ms) TRUNCATE TABLE `fe_applications`;  (52.7ms) TRUNCATE TABLE `fe_conditions`;  (49.7ms) TRUNCATE TABLE `fe_elements`;  (22.3ms) TRUNCATE TABLE `fe_email_templates`;  (20.8ms) TRUNCATE TABLE `fe_page_elements`;  (24.4ms) TRUNCATE TABLE `fe_pages`;  (27.0ms) TRUNCATE TABLE `fe_people`;  (15.7ms) TRUNCATE TABLE `fe_question_sheets`;  (33.3ms) TRUNCATE TABLE `fe_references`;  (24.6ms) TRUNCATE TABLE `fe_users`;  (17.1ms) TRUNCATE TABLE `phone_numbers`;  (17.8ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-09-08 21:18:53', '2023-09-08 21:18:53')  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9 - COPY', '2023-09-08 21:18:53', '2023-09-08 21:18:53')  (14.8ms) COMMIT Fe::Page Load (2.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to / Completed 302 Found in 23ms (ActiveRecord: 17.9ms)  (1.0ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (23.4ms) TRUNCATE TABLE `fe_addresses`;  (42.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (39.9ms) TRUNCATE TABLE `fe_answers`;  (39.2ms) TRUNCATE TABLE `fe_applications`;  (44.8ms) TRUNCATE TABLE `fe_conditions`;  (46.3ms) TRUNCATE TABLE `fe_elements`;  (22.7ms) TRUNCATE TABLE `fe_email_templates`;  (27.3ms) TRUNCATE TABLE `fe_page_elements`;  (23.2ms) TRUNCATE TABLE `fe_pages`;  (20.7ms) TRUNCATE TABLE `fe_people`;  (17.3ms) TRUNCATE TABLE `fe_question_sheets`;  (54.0ms) TRUNCATE TABLE `fe_references`;  (27.9ms) TRUNCATE TABLE `fe_users`;  (25.3ms) TRUNCATE TABLE `phone_numbers`;  (24.3ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-09-08 21:18:54', '2023-09-08 21:18:54')  (1.4ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_question_sheets` SET `archived` = 1, `updated_at` = '2023-09-08 21:18:54' WHERE `fe_question_sheets`.`id` = 1  (0.6ms) COMMIT Redirected to / Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.3ms) TRUNCATE TABLE `fe_addresses`;  (28.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (27.0ms) TRUNCATE TABLE `fe_answers`;  (33.9ms) TRUNCATE TABLE `fe_applications`;  (35.2ms) TRUNCATE TABLE `fe_conditions`;  (44.2ms) TRUNCATE TABLE `fe_elements`;  (16.7ms) TRUNCATE TABLE `fe_email_templates`;  (29.4ms) TRUNCATE TABLE `fe_page_elements`;  (28.0ms) TRUNCATE TABLE `fe_pages`;  (12.2ms) TRUNCATE TABLE `fe_people`;  (19.6ms) TRUNCATE TABLE `fe_question_sheets`;  (30.2ms) TRUNCATE TABLE `fe_references`;  (19.8ms) TRUNCATE TABLE `fe_users`;  (18.6ms) TRUNCATE TABLE `phone_numbers`;  (20.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-09-08 21:18:54', '2023-09-08 21:18:54')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 8) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 8', 8, 1, '2023-09-08 21:18:54', '2023-09-08 21:18:54')  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.5ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 9) SQL (0.5ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 9', 9, 1, '2023-09-08 21:18:54', '2023-09-08 21:18:54')  (1.0ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb (1.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (6.2ms) Fe::Element Load (3.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (12.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe.admin (37.3ms) Completed 200 OK in 754ms (Views: 746.4ms | ActiveRecord: 4.9ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (17.6ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.6ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.8ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', 1, '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = 0 ORDER BY label Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = 1 ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe.admin (2.9ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`;  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.8ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.8ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (8.1ms) TRUNCATE TABLE `phone_numbers`;  (9.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 10) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 10', 10, 1, '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Fe::Element Load (3.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (4.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (1.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (21.6ms) Completed 200 OK in 72ms (Views: 66.8ms | ActiveRecord: 3.7ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Label Element 1', 1, 'drop-down', 'Choice One\r\nChoice Two\r\nChoice Three', '', '2023-09-08 21:18:55', '2023-09-08 21:18:55') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 11) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 11', 11, 2, '2023-09-08 21:18:55', '2023-09-08 21:18:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 11) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 11 AND id != 1) SQL (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:18:55' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 11)  (0.4ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:55', '2023-09-08 21:18:55', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:55' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.5ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (12.1ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.2ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.2ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.2ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Label Element 2', 1, 'drop-down', 'Choice One\r\nChoice Two\r\nChoice Three', 'a;b', '2023-09-08 21:18:56', '2023-09-08 21:18:56') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 12) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 12', 12, 2, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 12) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 12 AND id != 1) SQL (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:18:56' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 12)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:56' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'a', 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'b', 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'c', 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (11.6ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Label Element 3', 1, 'drop-down', 'Choice One\r\nChoice Two\r\nChoice Three', 'a; b\n', '2023-09-08 21:18:56', '2023-09-08 21:18:56') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 13) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 13', 13, 2, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 13) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.6ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 13 AND id != 1) SQL (0.7ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:18:56' WHERE `fe_pages`.`id` = 1  (0.5ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 13)  (0.5ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:56' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'a', 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'd', 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.5ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Label Element 4', 1, 'drop-down', 'Choice One\r\nChoice Two\r\nChoice Three', 'a;b', '2023-09-08 21:18:56', '2023-09-08 21:18:56') Fe::Page Load (4.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 14) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 14', 14, 2, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 14) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 14 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:18:56' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 14)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:56' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'c', 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'd', 1, '2023-09-08 21:18:56', '2023-09-08 21:18:56')  (0.4ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.5ms) TRUNCATE TABLE `fe_addresses`;  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (12.0ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (8.1ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.6ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (8.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (8.8ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.8ms) TRUNCATE TABLE `fe_addresses`;  (10.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_answers`;  (9.1ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (7.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (32.3ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (8.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (8.5ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.8ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (10.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (8.0ms) TRUNCATE TABLE `fe_people`;  (7.5ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (9.3ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.7ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (12.8ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (12.0ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (11.7ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (12.5ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_answers`;  (9.8ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (8.7ms) TRUNCATE TABLE `fe_question_sheets`;  (11.0ms) TRUNCATE TABLE `fe_references`;  (7.7ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-09-08 21:18:58', '2023-09-08 21:18:58')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:18:58', '2023-09-08 21:18:58')  (1.0ms) COMMIT  (0.2ms) BEGIN SQL (2.4ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:18:58')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:58', '2023-09-08 21:18:58')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 15) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 15', 15, 1, '2023-09-08 21:18:58', '2023-09-08 21:18:58')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (2.1ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb (2.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (6.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (0.4ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (9.3ms)  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGridWithTotal') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_submit_to.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (41.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.6ms) Completed 200 OK in 77ms (Views: 55.5ms | ActiveRecord: 7.7ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (13.6ms) TRUNCATE TABLE `fe_addresses`;  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.3ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (8.0ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (8.0ms) TRUNCATE TABLE `phone_numbers`;  (8.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:18:59')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.4ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Redirected to /referrer Completed 302 Found in 4ms (ActiveRecord: 1.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (8.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (49.3ms) TRUNCATE TABLE `fe_references`;  (11.7ms) TRUNCATE TABLE `fe_users`;  (8.2ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:18:59')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.4ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Rendered text template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.0ms) TRUNCATE TABLE `fe_addresses`;  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (14.2ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (8.0ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 16) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 16', 16, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 17) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `hidden`, `created_at`, `updated_at`) VALUES ('Label Page 17', 17, 1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.6ms) COMMIT Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:18:59')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 5', 1, 'short', '2023-09-08 21:18:59', '2023-09-08 21:18:59') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 18) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 18', 18, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:59' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.1ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb (6.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (13.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (16.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 38ms (Views: 21.8ms | ActiveRecord: 5.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (9.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:18:59')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 19) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 19', 19, 2, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 6', 1, 'short', '2023-09-08 21:18:59', '2023-09-08 21:18:59') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 20) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 20', 20, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:59' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:18:59', '2023-09-08 21:18:59', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:18:59' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) Fe::Answer Load (1.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb (3.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (5.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (5.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 7.4ms | ActiveRecord: 4.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.8ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (9.5ms) TRUNCATE TABLE `fe_users`;  (8.5ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:00')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 21) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 21', 21, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 7', 1, 'short', 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00', 1) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 8', 1, 'short', '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:00', '2023-09-08 21:19:00', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.9ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 9', 1, 'short', '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:00', '2023-09-08 21:19:00', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.9ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.2ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) Fe::Answer Load (2.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb (5.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (10.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (10.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.3ms) Completed 200 OK in 30ms (Views: 11.0ms | ActiveRecord: 7.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (8.8ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:00')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 22) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 22', 22, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 10', 1, 'short', 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 11', 1, 'short', '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:00', '2023-09-08 21:19:00', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 12', 1, 'short', '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:00', '2023-09-08 21:19:00', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.6ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) Fe::Answer Load (2.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb (9.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (12.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (12.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 33ms (Views: 12.7ms | ActiveRecord: 9.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:00')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 23) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 23', 23, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (4.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 13', 1, 'staff', '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:00', '2023-09-08 21:19:00', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (14.1ms) COMMIT  (0.4ms) BEGIN SQL (0.4ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_1@email.com', 'fn_1', 'ln_1', 'phone_1', 'relationship_1', 1, 1, 'created', '2023-09-08 21:19:00', '2023-09-08 21:19:00') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:00' WHERE `fe_references`.`id` = 1  (12.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-09-08 21:19:00', '2023-09-08 21:19:00')  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"relationship"=>"rel", "title"=>"title", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "email"=>"email@email.com"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '2340c123f6df138f475b924b43c48291' LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = '2340c123f6df138f475b924b43c48291', `updated_at` = '2023-09-08 21:19:00' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.2ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 287.2ms Sent mail to email@email.com (17.0ms) Date: Fri, 08 Sep 2023 17:19:01 -0400 From: info@example.com To: email@email.com Message-ID: <64fb8fc59599_61463fdfc2c40e8c5195d@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.6ms Sent mail to email@email.com (1.2ms) Date: Fri, 08 Sep 2023 17:19:01 -0400 From: info@example.com To: email@email.com Message-ID: <64fb8fc5bef1_61463fdfc2c40e8c520e6@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.1ms) BEGIN SQL (0.5ms) UPDATE `fe_references` SET `email_sent_at` = '2023-09-08 21:19:01', `updated_at` = '2023-09-08 21:19:01' WHERE `fe_references`.`id` = 1  (12.8ms) COMMIT Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (0.9ms) Completed 200 OK in 414ms (Views: 77.9ms | ActiveRecord: 16.4ms) Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (16.8ms) TRUNCATE TABLE `fe_addresses`;  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (6.6ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-09-08 21:19:01', '2023-09-08 21:19:01')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:01', '2023-09-08 21:19:01')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:01')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:01', '2023-09-08 21:19:01')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Fe::Application Load (0.6ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (5.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 1.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.4ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', '2023-09-08 21:19:01', '2023-09-08 21:19:01')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:01', '2023-09-08 21:19:01')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:01')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:01', '2023-09-08 21:19:01')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:01', '2023-09-08 21:19:01') SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`question_sheet_id`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:01', '2023-09-08 21:19:01')  (0.5ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (220.2ms) TRUNCATE TABLE `fe_applications`;  (17.6ms) TRUNCATE TABLE `fe_conditions`;  (12.9ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.3ms) TRUNCATE TABLE `fe_question_sheets`;  (14.4ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (8.6ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.7ms) TRUNCATE TABLE `fe_answers`;  (8.8ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (8.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.3ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (12.6ms) TRUNCATE TABLE `fe_elements`;  (8.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (8.1ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (8.2ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:02', '2023-09-08 21:19:02')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-08 21:19:02', '2023-09-08 21:19:02') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:02 UTC', '2023-09-08 21:19:02', '2023-09-08 21:19:02')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (12.2ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:02', '2023-09-08 21:19:02')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-08 21:19:02', '2023-09-08 21:19:02') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-09-08 21:19:02', '2023-09-08 21:19:02')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (7.5ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (8.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:02', '2023-09-08 21:19:02')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-08 21:19:02', '2023-09-08 21:19:02') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-09-08 21:19:02', '2023-09-08 21:19:02')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (9.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (8.0ms) TRUNCATE TABLE `phone_numbers`;  (7.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (9.3ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (7.7ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (8.1ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.8ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (7.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (6.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (7.8ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:03')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 24) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 24', 24, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.4ms) COMMIT  (2.2ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element_type"=>"Fe::TextField", "element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:03' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (6.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb (12.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (19.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (3.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (9.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (23.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (28.8ms) Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (10.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (61.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (87.3ms) Completed 200 OK in 113ms (Views: 95.5ms | ActiveRecord: 6.4ms)  (0.7ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (29.1ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.7ms) TRUNCATE TABLE `fe_conditions`;  (12.4ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (9.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (35.2ms) TRUNCATE TABLE `fe_people`;  (10.1ms) TRUNCATE TABLE `fe_question_sheets`;  (11.4ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 25) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 25', 25, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.6ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element_type"=>"Fe::TextField", "element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN  (0.2ms) ROLLBACK Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (1.0ms) Completed 200 OK in 33ms (Views: 6.6ms | ActiveRecord: 1.1ms)  (0.3ms) SELECT COUNT(*) FROM `fe_elements`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (15.4ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (9.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.4ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.8ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:03')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 26) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 26', 26, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 14', 1, 'style', '2023-09-08 21:19:03', '2023-09-08 21:19:03') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:03', '2023-09-08 21:19:03', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:03' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (41.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb (77.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (120.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (39.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (83.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (120.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (3.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (243.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (434.7ms) Completed 200 OK in 493ms (Views: 474.5ms | ActiveRecord: 6.3ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`;  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.1ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (48.6ms) TRUNCATE TABLE `fe_question_sheets`;  (14.5ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:04')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 27) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 27', 27, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 15', 1, 'style', 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 16', 1, 'style', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element_type"=>"Fe::TextField", "element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (1.0ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = 0 AND `fe_elements`.`share` = 1 AND `fe_elements`.`style` = 'style' ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (1.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (45.0ms) Completed 200 OK in 84ms (Views: 80.8ms | ActiveRecord: 1.2ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (9.9ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:04')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 28) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 28', 28, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 17', 1, 'short', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (0.8ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (2.1ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (5.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (6.4ms) Completed 200 OK in 26ms (Views: 11.1ms | ActiveRecord: 4.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.2ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 29) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 29', 29, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 18', 1, 'style', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 19', 1, 'style', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 20', 1, 'style', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 21', 1, 'style', 3, '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 22', 1, 'style', 3, '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04', 2) SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (3, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04', 3) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_page_elements` SET `position` = 2, `updated_at` = '2023-09-08 21:19:04' WHERE `fe_page_elements`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (position = 2) SQL (0.3ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position > 1) AND (position <= 2 AND id != 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_page_elements` SET `position` = 3, `updated_at` = '2023-09-08 21:19:04' WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (position = 3) SQL (0.3ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position > 2) AND (position <= 3 AND id != 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_page_elements` SET `position` = 1, `updated_at` = '2023-09-08 21:19:04' WHERE `fe_page_elements`.`id` = 3  (0.2ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (position = 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:04' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.3ms) Completed 200 OK in 41ms (Views: 5.8ms | ActiveRecord: 11.5ms) Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (11.5ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 30) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 30', 30, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:04', '2023-09-08 21:19:04')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 23', 1, 'style', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 24', 1, 'style', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 25', 1, 'style', '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 26', 1, 'style', 3, '2023-09-08 21:19:04', '2023-09-08 21:19:04') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 27', 1, 'style', 3, '2023-09-08 21:19:05', '2023-09-08 21:19:05') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 1) SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 2) SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (3, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 3) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) COMMIT  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_elements` SET `position` = 2, `updated_at` = '2023-09-08 21:19:05' WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_elements` SET `position` = 1, `updated_at` = '2023-09-08 21:19:05' WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) COMMIT Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 27ms (Views: 0.6ms | ActiveRecord: 8.9ms)  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (8.1ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (11.4ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:05')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 31) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 31', 31, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 28', 1, 'style', 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 28', 1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_elements` SET `share` = 0, `updated_at` = '2023-09-08 21:19:05' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb (1.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (3.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.1ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (8.3ms) Completed 200 OK in 33ms (Views: 7.9ms | ActiveRecord: 8.7ms) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (13.8ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:05')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 32) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 32', 32, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 29', 1, 'style', '2023-09-08 21:19:05', '2023-09-08 21:19:05') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 SQL (0.5ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 SQL (0.3ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position > 1) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (2.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.2ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 SQL (0.3ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 SQL (0.5ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 1  (0.5ms) COMMIT Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (3.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (9.4ms) Completed 200 OK in 39ms (Views: 16.0ms | ActiveRecord: 10.5ms) Fe::PageElement Load (1.0ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.0ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.3ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (11.4ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:05')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 33) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 33', 33, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 34) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 34', 34, 2, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 30', 1, 'style', '2023-09-08 21:19:05', '2023-09-08 21:19:05') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 SQL (0.4ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position > 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.5ms) Completed 200 OK in 27ms (Views: 1.9ms | ActiveRecord: 6.8ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.3ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.4ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:05')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 35) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 35', 35, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 31', 1, 'style', '2023-09-08 21:19:05', '2023-09-08 21:19:05') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'answer here', 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 SQL (0.2ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:05' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.6ms) Completed 200 OK in 15ms (Views: 2.1ms | ActiveRecord: 4.5ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (10.7ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (8.0ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:05')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 36) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 36', 36, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:05', '2023-09-08 21:19:05')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 32', 1, 'style', '2023-09-08 21:19:05', '2023-09-08 21:19:05') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:06', '2023-09-08 21:19:06', 1) SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:06' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (3.6ms) Completed 200 OK in 17ms (Views: 8.6ms | ActiveRecord: 3.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) TRUNCATE TABLE `fe_addresses`;  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (10.3ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:06')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-09-08 21:19:06', '2023-09-08 21:19:06')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 37) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 37', 37, 1, '2023-09-08 21:19:06', '2023-09-08 21:19:06')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:06', '2023-09-08 21:19:06')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 33', 1, 'style', '2023-09-08 21:19:06', '2023-09-08 21:19:06') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:06', '2023-09-08 21:19:06', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:06' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1)  (0.1ms) ROLLBACK Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.4ms) Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.7ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.2ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.5ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-09-08 21:19:06', '2023-09-08 21:19:06')  (0.5ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe.admin (1.6ms) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (12.0ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (40.3ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe.admin (11.6ms) Completed 200 OK in 17ms (Views: 16.9ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (35.4ms) TRUNCATE TABLE `fe_addresses`;  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (9.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.2ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"name"=>"Name", "subject"=>"Subject", "content"=>"Content"}}  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_email_templates` (`name`, `subject`, `content`, `created_at`, `updated_at`) VALUES ('Name', 'Subject', 'Content', '2023-09-08 21:19:06', '2023-09-08 21:19:06')  (0.7ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 3ms (ActiveRecord: 1.0ms)  (0.7ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.8ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.7ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (9.6ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `related_question_sheet_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 1, 'staff', 1, '2023-09-08 21:19:06', '2023-09-08 21:19:06') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:06' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:06')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('email_2@email.com', 'fn_2', 'ln_2', 'phone_2', 'relationship_2', 1, 1, 'created', '2023-09-08 21:19:06', '2023-09-08 21:19:06', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:06' WHERE `fe_references`.`id` = 1  (17.1ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (13.2ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (8.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (8.3ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (7.6ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (7.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:07')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.5ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_3@email.com', 'fn_3', 'ln_3', 'phone_3', 'relationship_3', 1, 'created', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.4ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (12.0ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.4ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.3ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:07')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.9ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_4@email.com', 'fn_4', 'ln_4', 'phone_4', 'relationship_4', 1, 'created', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.5ms) COMMIT Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.2ms) TRUNCATE TABLE `fe_references`;  (7.9ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (43.1ms) TRUNCATE TABLE `fe_answers`;  (9.7ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (8.6ms) TRUNCATE TABLE `fe_people`;  (8.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.8ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `status`, `created_at`, `updated_at`) VALUES ('email_5@email.com', 'fn_5', 'ln_5', 'phone_5', 'relationship_5', 'created', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_answers`;  (7.3ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (9.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.5ms) TRUNCATE TABLE `fe_page_elements`;  (8.7ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 38) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 38', 38, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 39) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 39', 39, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 40) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 40', 40, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 41) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 41', 41, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 42) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 42', 42, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 34', 1, 'staff', '2023-09-08 21:19:07', '2023-09-08 21:19:07') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:07', '2023-09-08 21:19:07') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:07', '2023-09-08 21:19:07', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 SQL (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL, `updated_at` = '2023-09-08 21:19:07' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.8ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 SQL (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 35', 1, 'staff', '2023-09-08 21:19:07', '2023-09-08 21:19:07') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:07', '2023-09-08 21:19:07', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 43) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 43', 43, 2, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 44) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 44', 44, 2, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 45) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 45', 45, 2, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 46) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 46', 46, 2, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 47) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 47', 47, 2, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.5ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'no', 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_6@email.com', 'fn_6', 'ln_6', 'phone_6', 'relationship_6', 1, 1, 'created', '2023-09-08 21:19:07', '2023-09-08 21:19:07') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230908211907000000000', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:07' WHERE `fe_references`.`id` = 1  (5.9ms) COMMIT Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.1ms) TRUNCATE TABLE `fe_addresses`;  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (12.5ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 48) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 48', 48, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 49) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 49', 49, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 50) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 50', 50, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 51) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 51', 51, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 52) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 52', 52, 1, '2023-09-08 21:19:07', '2023-09-08 21:19:07')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 36', 1, 'staff', '2023-09-08 21:19:07', '2023-09-08 21:19:07') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 SQL (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL, `updated_at` = '2023-09-08 21:19:08' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.3ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 37', 1, 'staff', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 53) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 53', 53, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 54) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 54', 54, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 55) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 55', 55, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 56) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 56', 56, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 57) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 57', 57, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_7@email.com', 'fn_7', 'ln_7', 'phone_7', 'relationship_7', 1, 1, 'created', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`id` = 1  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_references` SET `visibility_cache_key` = 'something', `updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'no', 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.3ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230908211908000000000', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (10.5ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (7.6ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (8.0ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (7.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 58) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 58', 58, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 59) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 59', 59, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 60) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 60', 60, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 61) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 61', 61, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 62) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 62', 62, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN SQL (4.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 38', 1, 'staff', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 SQL (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL, `updated_at` = '2023-09-08 21:19:08' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.7ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 SQL (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 39', 1, 'staff', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.5ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 63) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 63', 63, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 64) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 64', 64, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 65) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 65', 65, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 66) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 66', 66, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 67) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 67', 67, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_8@email.com', 'fn_8', 'ln_8', 'phone_8', 'relationship_8', 1, 1, 'created', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`id` = 1  (6.0ms) COMMIT  (0.4ms) BEGIN SQL (0.8ms) UPDATE `fe_references` SET `visibility_cache_key` = NULL, `updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'no', 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230908211908000000000', `fe_references`.`visible` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (10.4ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.4ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (8.0ms) TRUNCATE TABLE `phone_numbers`;  (8.4ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 68) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 68', 68, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 69) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 69', 69, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 70) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 70', 70, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 71) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 71', 71, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 72) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 72', 72, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 40', 1, 'staff', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 SQL (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL, `updated_at` = '2023-09-08 21:19:08' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.3ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 41', 1, 'staff', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (2.2ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:08', '2023-09-08 21:19:08', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 73) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 73', 73, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 74) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 74', 74, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 75) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 75', 75, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 76) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 76', 76, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 77) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 77', 77, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.6ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'no', 1, '2023-09-08 21:19:08', '2023-09-08 21:19:08')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_9@email.com', 'fn_9', 'ln_9', 'phone_9', 'relationship_9', 1, 1, 'created', '2023-09-08 21:19:08', '2023-09-08 21:19:08') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230908211908000000000', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:08' WHERE `fe_references`.`id` = 1  (7.1ms) COMMIT Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN SQL (0.6ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-09-08 21:19:09' WHERE `fe_answers`.`id` = 1  (1.4ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-09-08 21:19:09', '2023-09-08 21:19:09')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 78) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 78', 78, 1, '2023-09-08 21:19:09', '2023-09-08 21:19:09')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 79) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 79', 79, 1, '2023-09-08 21:19:09', '2023-09-08 21:19:09')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 80) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 80', 80, 1, '2023-09-08 21:19:09', '2023-09-08 21:19:09')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 81) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 81', 81, 1, '2023-09-08 21:19:09', '2023-09-08 21:19:09')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 82) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 82', 82, 1, '2023-09-08 21:19:09', '2023-09-08 21:19:09')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 'yes', '2023-09-08 21:19:09', '2023-09-08 21:19:09') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:09', '2023-09-08 21:19:09', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:09' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 1, 'staff', '2023-09-08 21:19:09', '2023-09-08 21:19:09') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:09' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:09', '2023-09-08 21:19:09', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:09' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:09' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:09')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:09', '2023-09-08 21:19:09')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_10@email.com', 'fn_10', 'ln_10', 'phone_10', 'relationship_10', 1, 2, 'created', '2023-09-08 21:19:09', '2023-09-08 21:19:09') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`id` = 1  (11.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'no', 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (12.3ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.7ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 83) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 83', 83, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 84) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 84', 84, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 85) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 85', 85, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 86) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 86', 86, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 87) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 87', 87, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 'yes', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 1, 'staff', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:10', '2023-09-08 21:19:10', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:10')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_11@email.com', 'fn_11', 'ln_11', 'phone_11', 'relationship_11', 1, 2, 'created', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`id` = 1  (11.7ms) COMMIT Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (8.5ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.3ms) TRUNCATE TABLE `fe_references`;  (7.7ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 88) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 88', 88, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 89) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 89', 89, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 90) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 90', 90, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 91) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 91', 91, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 92) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 92', 92, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 1, 'staff', 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:10', '2023-09-08 21:19:10', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:10')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_12@email.com', 'fn_12', 'ln_12', 'phone_12', 'relationship_12', 1, 2, 'created', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`id` = 1  (9.5ms) COMMIT Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'no', 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (7.3ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (13.6ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 93) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 93', 93, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 94) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 94', 94, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 95) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 95', 95, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 96) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 96', 96, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 97) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 97', 97, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the reference required?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 1, 'staff', 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (2.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:10', '2023-09-08 21:19:10', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_13@email.com', 'fn_13', 'ln_13', 'phone_13', 'relationship_13', 1, 2, 'created', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:10' WHERE `fe_references`.`id` = 1  (11.5ms) COMMIT Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.9ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.6ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.7ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.2ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.6ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.4ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (8.2ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 98) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 98', 98, 2, '2023-09-08 21:19:10', '2023-09-08 21:19:10')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 98) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 98 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:10' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 98)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 42', 1, 'short', '2023-09-08 21:19:10', '2023-09-08 21:19:10') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 1, 'peer', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:11')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `status`, `question_id`, `email_sent_at`, `applicant_answer_sheet_id`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('email_14@email.com', 'fn_14', 'ln_14', 'phone_14', 'relationship_14', 'started', 2, '2023-09-08 20:19:11', 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1  (12.8ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('test', 1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (1.5ms) COMMIT  (0.2ms) BEGIN SQL (1.8ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('reference deleted', 'Reference Deleted', 1, 'Reference Deleted', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (1.0ms) COMMIT SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`status` = 'started' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 SQL (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '8b51127c9ecc02333d45008b799ff8f9' LIMIT 1 SQL (0.4ms) UPDATE `fe_references` SET `email` = 'a@b.com', `access_key` = '8b51127c9ecc02333d45008b799ff8f9', `email_sent_at` = NULL, `status` = 'created', `updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Deleted' LIMIT 1 Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms Sent mail to email_14@email.com (1.7ms) Date: Fri, 08 Sep 2023 17:19:11 -0400 From: info@example.com To: email_14@email.com Message-ID: <64fb8fcf11879_61463fdfc2c40e8c52177@andrews-macbook-pro.local.ccci.org.mail> Subject: Reference Deleted Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit reference deleted  (0.9ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.0ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (9.0ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 99) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 99', 99, 2, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 99) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 99 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 99)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 43', 1, 'short', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 1, 'peer', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (2.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:11')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `status`, `question_id`, `email_sent_at`, `applicant_answer_sheet_id`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('email_15@email.com', 'fn_15', 'ln_15', 'phone_15', 'relationship_15', 'started', 2, '2023-09-08 20:19:11', 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1  (12.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('test', 1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (6.0ms) COMMIT  (0.4ms) BEGIN SQL (2.3ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('reference deleted', 'Reference Deleted', 1, 'Reference Deleted', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.8ms) COMMIT SQL (1.0ms) UPDATE `fe_references` SET `fe_references`.`status` = 'completed' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN SQL (0.5ms) UPDATE `fe_references` SET `email` = 'a@b.com', `updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.9ms) SELECT COUNT(*) FROM `fe_answers`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`;  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (8.5ms) TRUNCATE TABLE `fe_users`;  (9.0ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 100) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 100', 100, 2, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 100) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 100 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 100)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 44', 1, 'short', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 1, 'peer', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:11')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `status`, `question_id`, `email_sent_at`, `applicant_answer_sheet_id`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('email_16@email.com', 'fn_16', 'ln_16', 'phone_16', 'relationship_16', 'started', 2, '2023-09-08 20:19:11', 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1  (14.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('test', 1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('reference deleted', 'Reference Deleted', 1, 'Reference Deleted', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.7ms) COMMIT SQL (0.8ms) UPDATE `fe_references` SET `fe_references`.`status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('test', 1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.4ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`;  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.6ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (8.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.3ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 101) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 101', 101, 2, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 101) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 101 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 101)  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 45', 1, 'short', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 1, 'peer', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:11')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `status`, `question_id`, `email_sent_at`, `applicant_answer_sheet_id`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('email_17@email.com', 'fn_17', 'ln_17', 'phone_17', 'relationship_17', 'started', 2, '2023-09-08 20:19:11', 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1  (12.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('test', 1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (5.9ms) COMMIT  (0.3ms) BEGIN SQL (2.3ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('reference deleted', 'Reference Deleted', 1, 'Reference Deleted', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.8ms) COMMIT SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`status` = 'started' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 SQL (0.4ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'f93bd131699095cba3ebd6f66e8ecce5' LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `access_key` = 'f93bd131699095cba3ebd6f66e8ecce5', `email_sent_at` = NULL, `status` = 'created', `updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.2ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Deleted' LIMIT 1 Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms Sent mail to email_17@email.com (1.5ms) Date: Fri, 08 Sep 2023 17:19:11 -0400 From: info@example.com To: email_17@email.com Message-ID: <64fb8fcfb69c3_61463fdfc2c40e8c5223a@andrews-macbook-pro.local.ccci.org.mail> Subject: Reference Deleted Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit reference deleted  (0.7ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (14.9ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.3ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 102) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 102', 102, 2, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 102) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 102 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 102)  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 46', 1, 'short', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 1, 'peer', '2023-09-08 21:19:11', '2023-09-08 21:19:11') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:11')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `status`, `question_id`, `email_sent_at`, `applicant_answer_sheet_id`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('email_18@email.com', 'fn_18', 'ln_18', 'phone_18', 'relationship_18', 'started', 2, '2023-09-08 20:19:11', 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1  (11.8ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_answers` (`value`, `answer_sheet_id`, `question_id`, `created_at`, `updated_at`) VALUES ('test', 1, 1, '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (5.7ms) COMMIT  (0.2ms) BEGIN SQL (1.2ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('reference deleted', 'Reference Deleted', 1, 'Reference Deleted', '2023-09-08 21:19:11', '2023-09-08 21:19:11')  (0.7ms) COMMIT SQL (0.7ms) UPDATE `fe_references` SET `fe_references`.`status` = 'created' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 SQL (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '3d755e08873b53cf5d8893f4523524ec' LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `access_key` = '3d755e08873b53cf5d8893f4523524ec', `email_sent_at` = NULL, `updated_at` = '2023-09-08 21:19:11' WHERE `fe_references`.`id` = 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Deleted' LIMIT 1 Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms Sent mail to email_18@email.com (1.5ms) Date: Fri, 08 Sep 2023 17:19:11 -0400 From: info@example.com To: email_18@email.com Message-ID: <64fb8fcfee424_61463fdfc2c40e8c523b3@andrews-macbook-pro.local.ccci.org.mail> Subject: Reference Deleted Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit reference deleted  (0.6ms) COMMIT  (0.7ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (27.1ms) TRUNCATE TABLE `fe_question_sheets`;  (27.8ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (8.3ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 103) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 103', 103, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 104) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 104', 104, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 105) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 105', 105, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 106) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 106', 106, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 107) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 107', 107, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 0, 'staff', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_19@email.com', 'fn_19', 'ln_19', 'phone_19', 'relationship_19', 1, 1, 'created', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`id` = 1  (12.2ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (15.4ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 108) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 108', 108, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 109) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 109', 109, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 110) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 110', 110, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 111) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 111', 111, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 112) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 112', 112, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:12')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 1, 'staff', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_20@email.com', 'fn_20', 'ln_20', 'phone_20', 'relationship_20', 1, 1, 'created', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`id` = 1  (12.7ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (12.1ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.7ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 113) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 113', 113, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 114) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 114', 114, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 115) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 115', 115, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 116) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 116', 116, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 117) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 117', 117, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Reference question here', 1, 'staff', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:12', '2023-09-08 21:19:12', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `question_id`, `status`, `created_at`, `updated_at`) VALUES ('email_21@email.com', 'fn_21', 'ln_21', 'phone_21', 'relationship_21', 1, 1, 'created', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (2.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`id` = 1  (13.0ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (9.9ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (7.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.9ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '002fa061eaf0733c215350f5227a3a68' LIMIT 1 Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '41074f9fa07e75e8007d7243ca902023' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '30b4117cc113dc85752cb5ed91243b0e' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ecaf220a61302c4bf1a7c149f146f810' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'f1c7e36dcdbf1c58285c5f41d2156f0a' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '094242cce0647e894ddf996a14e4afdd' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '16f461cb88008fab39eefaa0f0d7dcf7' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '0c84d510471557835efcf374580258e6' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '183ab2e598c24611b6e26f5f5e854853' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ccd0b03c831fe43a983955e51cf88da1' LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (11.6ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (10.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 47', 1, 'staff', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:12', '2023-09-08 21:19:12')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:12')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_22@email.com', 'fn_22', 'ln_22', 'phone_22', 'relationship_22', 1, 1, 'created', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:12' WHERE `fe_references`.`id` = 1  (12.5ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 48', 1, 'short', '2023-09-08 21:19:12', '2023-09-08 21:19:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.6ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`;  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.6ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (8.1ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 49', 1, 'staff', '2023-09-08 21:19:13', '2023-09-08 21:19:13') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:13', '2023-09-08 21:19:13')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `applicant_id`, `updated_at`) VALUES ('2023-09-08 21:18:48', 1, '2023-09-08 21:19:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('email_23@email.com', 'fn_23', 'ln_23', 'phone_23', 'relationship_23', 1, 1, 'created', '2023-09-08 21:19:13', '2023-09-08 21:19:13') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:13' WHERE `fe_references`.`id` = 1  (12.4ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 50', 1, 'short', '2023-09-08 21:19:13', '2023-09-08 21:19:13') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'some text response', 1, '2023-09-08 21:19:13', '2023-09-08 21:19:13')  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.6ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (9.4ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.2ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (8.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (12.0ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.1ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (8.8ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.8ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (12.3ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.4ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (8.2ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.8ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-09-08 21:19:13', '2023-09-08 21:19:13')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 1, 'peer', '2023-09-08 21:19:13', '2023-09-08 21:19:13') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-08 21:19:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('email_24@email.com', 'fn_24', 'ln_24', 'phone_24', 'relationship_24', 1, 'created', '2023-09-08 21:19:13', '2023-09-08 21:19:13', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:13' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-09-08 21:19:13', '2023-09-08 21:19:13')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2, `updated_at` = '2023-09-08 21:19:13' WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-08 21:19:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_references` SET `status` = 'started', `updated_at` = '2023-09-08 21:19:13' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-09-08 21:19:13', '2023-09-08 21:19:13')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3, `updated_at` = '2023-09-08 21:19:13' WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-09-08 21:19:13' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (12.2ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (8.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-08 21:19:14', '2023-09-08 21:19:14') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:14' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (9.8ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (8.9ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-08 21:19:14', '2023-09-08 21:19:14') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:14' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (8.7ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (4.3ms) INSERT INTO `fe_elements` (`kind`, `content`, `style`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'Lorem ipsum...', 'paragraph', '2023-09-08 21:19:14', '2023-09-08 21:19:14') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `content`, `style`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'abc', 'paragraph', '2023-09-08 21:19:14', '2023-09-08 21:19:14') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`;  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.8ms) TRUNCATE TABLE `fe_applications`;  (11.4ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.4ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (8.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.8ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 118) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 118', 118, 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 119) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 119', 119, 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 120) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 120', 120, 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 121) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 121', 121, 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 122) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 122', 122, 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will show the next element if the answer is yes', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 'yes', '2023-09-08 21:19:14', '2023-09-08 21:19:14') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:14' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that is made visible by the previous element', 1, 'short', '2023-09-08 21:19:14', '2023-09-08 21:19:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:14', '2023-09-08 21:19:14', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:14' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:14')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (0.5ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (2.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'no', 1, '2023-09-08 21:19:14', '2023-09-08 21:19:14')  (12.8ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-09-08 21:19:14' WHERE `fe_answers`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (14.3ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.7ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (7.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (9.0ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.2ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`;  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (7.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.9ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (9.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (9.1ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (12.8ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-09-08 21:19:15', '2023-09-08 21:19:15')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 123) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 123', 123, 1, '2023-09-08 21:19:15', '2023-09-08 21:19:15')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 51', 1, 'grid', '2023-09-08 21:19:15', '2023-09-08 21:19:15') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `conditional_answer`, `conditional_id`, `conditional_type`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 52', 1, 'short', 'asdf', 1, 'Fe::Element', '2023-09-08 21:19:15', '2023-09-08 21:19:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:15', '2023-09-08 21:19:15', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:15' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 SQL (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL, `updated_at` = '2023-09-08 21:19:15' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:15', '2023-09-08 21:19:15', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:15' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'Label Element 53', 1, 'grid', 1, '2023-09-08 21:19:15', '2023-09-08 21:19:15') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 54', 1, 'short', 3, '2023-09-08 21:19:15', '2023-09-08 21:19:15') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:15')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:15', '2023-09-08 21:19:15')  (0.4ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'asdf', 1, '2023-09-08 21:19:15', '2023-09-08 21:19:15')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_answers` SET `value` = 'something else', `updated_at` = '2023-09-08 21:19:15' WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (8.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (8.1ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 124) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 124', 124, 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 55', 1, 'grid', '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16', 1) SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:16' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 56', 1, 'short', 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 57', 1, 'short', '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:16', '2023-09-08 21:19:16', 2) SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:16' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 58', 1, 'section', 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::QuestionGridWithTotal Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) COMMIT SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (1.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.5ms) TRUNCATE TABLE `fe_addresses`;  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.6ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 125) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 125', 125, 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.5ms) COMMIT Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.1ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (6.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 126) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 126', 126, 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.6ms) COMMIT Fe::Element Load (2.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.8ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 127) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `all_element_ids`, `created_at`, `updated_at`) VALUES ('Label Page 127', 127, 1, '2,1', '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 59', 1, 'short', '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 60', 1, 'short', '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (10.5ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 128) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 128', 128, 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 61', 1, 'grid', '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:16' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 62', 1, 'short', 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 63', 1, 'short', '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:16', '2023-09-08 21:19:16', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:16' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 64', 1, 'section', 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (9.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.4ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 129) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `hidden`, `created_at`, `updated_at`) VALUES ('Label Page 129', 129, 1, 1, '2023-09-08 21:19:16', '2023-09-08 21:19:16')  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.6ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (8.1ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 130) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 130', 130, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 65', 1, 'short', '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:17' WHERE `fe_pages`.`id` = 1 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal'))  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.8ms) TRUNCATE TABLE `fe_elements`;  (9.0ms) TRUNCATE TABLE `fe_email_templates`;  (43.2ms) TRUNCATE TABLE `fe_page_elements`;  (8.2ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 131) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 131', 131, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 66', 1, 'grid', '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:17' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 67', 1, 'section', 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (5.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal'))  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (8.2ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 132) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 132', 132, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 68', 1, 'section', '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:17' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal'))  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (9.1ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (6.4ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (6.8ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 133) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 133', 133, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 69', 1, 'grid', '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:17' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 70', 1, 'short', 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 71', 1, 'section', 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal'))  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.0ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.2ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.3ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.4ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (6.8ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 134) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 134', 134, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.6ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.9ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (10.4ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (8.5ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 135) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 135', 135, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 72', 1, 'short', '2023-09-08 21:19:17', '2023-09-08 21:19:17') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:17', '2023-09-08 21:19:17', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:17' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 SQL (0.2ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:18' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (8.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (9.2ms) TRUNCATE TABLE `fe_people`;  (8.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.7ms) TRUNCATE TABLE `fe_references`;  (7.7ms) TRUNCATE TABLE `fe_users`;  (8.4ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-09-08 21:19:18', '2023-09-08 21:19:18')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-09-08 21:19:18', '2023-09-08 21:19:18')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.8ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 136) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 136', 136, 2, '2023-09-08 21:19:18', '2023-09-08 21:19:18')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 136) SQL (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 136', 136, '2023-09-08 21:19:18', '2023-09-08 21:19:18')  (0.5ms) COMMIT Fe::Element Load (4.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.9ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`;  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (15.9ms) TRUNCATE TABLE `fe_applications`;  (27.3ms) TRUNCATE TABLE `fe_conditions`;  (57.8ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-09-08 21:19:18', '2023-09-08 21:19:18')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 137) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 137', 137, 1, '2023-09-08 21:19:18', '2023-09-08 21:19:18')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.7ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'Label Element 73', 1, 'grid', '2023-09-08 21:19:18', '2023-09-08 21:19:18') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_page_elements` SET position = (position + 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position >= 1) SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-08 21:19:18', '2023-09-08 21:19:18') SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:18' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 74', 1, 'short', 1, '2023-09-08 21:19:18', '2023-09-08 21:19:18') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 75', 1, 'short', '2023-09-08 21:19:18', '2023-09-08 21:19:18') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_page_elements` SET position = (position + 1) WHERE `fe_page_elements`.`page_id` = 1 AND (position >= 2) SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-08 21:19:18', '2023-09-08 21:19:18') SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:18' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 76', 1, 'section', 1, '2023-09-08 21:19:18', '2023-09-08 21:19:18') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (11.6ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (9.5ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (7.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.8ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (8.1ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (12.3ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.7ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (7.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 77', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 78', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 79', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (18.0ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (14.5ms) TRUNCATE TABLE `fe_addresses`;  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (10.4ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.6ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 80', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 81', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 82', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.7ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 83', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 84', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:19')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'Label Element 85', 1, 'section', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`attachment_file_name`, `answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES ('test_file', 1, 3, 'test_file', '2023-09-08 21:19:19', '2023-09-08 21:19:19')  (0.5ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.3ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (10.7ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (8.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 86', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 87', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 88', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (8.7ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 89', 1, 'short', 'test', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-09-08 21:19:19', '2023-09-08 21:19:19')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 138) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 138', 138, 1, '2023-09-08 21:19:19', '2023-09-08 21:19:19')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 139) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 139', 139, 1, '2023-09-08 21:19:19', '2023-09-08 21:19:19')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 140) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 140', 140, 1, '2023-09-08 21:19:19', '2023-09-08 21:19:19')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 141) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 141', 141, 1, '2023-09-08 21:19:19', '2023-09-08 21:19:19')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 142) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 142', 142, 1, '2023-09-08 21:19:19', '2023-09-08 21:19:19')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:19', '2023-09-08 21:19:19', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:19' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 90', 1, 'short', '2023-09-08 21:19:19', '2023-09-08 21:19:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:19:19', '2023-09-08 21:19:19', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:19' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2)  (0.1ms) ROLLBACK  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (39.6ms) TRUNCATE TABLE `fe_addresses`;  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 91', 1, 'short', 'test', '2023-09-08 21:19:20', '2023-09-08 21:19:20') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 143) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 143', 143, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 144) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 144', 144, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 145) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 145', 145, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 146) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 146', 146, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 147) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 147', 147, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20', 1) SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 92', 1, 'short', '2023-09-08 21:19:20', '2023-09-08 21:19:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 148) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 148', 148, 2, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 149) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 149', 149, 2, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 150) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 150', 150, 2, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 151) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 151', 151, 2, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 152) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 152', 152, 2, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 6, '2023-09-08 21:19:20', '2023-09-08 21:19:20', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) SQL (0.4ms) UPDATE `fe_elements` SET `slug` = 'test', `updated_at` = '2023-09-08 21:19:20' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.6ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 153) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 153', 153, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 154) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 154', 154, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 155) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 155', 155, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 156) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 156', 156, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 157) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 157', 157, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next pag', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, '2023-09-08 21:19:20', '2023-09-08 21:19:20') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 1, `updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 1)  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET `number` = 2, `updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 2)  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 3, `updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 3)  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 1, `updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 4  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 1) SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 1) AND (number < 156 AND id != 4)  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 4, `updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 4) SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 4) AND (number < 157 AND id != 5)  (0.3ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.0ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.2ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (9.9ms) TRUNCATE TABLE `fe_elements`;  (6.4ms) TRUNCATE TABLE `fe_email_templates`;  (6.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.0ms) TRUNCATE TABLE `fe_pages`;  (6.0ms) TRUNCATE TABLE `fe_people`;  (5.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_references`;  (5.8ms) TRUNCATE TABLE `fe_users`;  (6.4ms) TRUNCATE TABLE `phone_numbers`;  (5.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.7ms) TRUNCATE TABLE `fe_addresses`;  (6.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.0ms) TRUNCATE TABLE `fe_answers`;  (6.4ms) TRUNCATE TABLE `fe_applications`;  (9.6ms) TRUNCATE TABLE `fe_conditions`;  (10.1ms) TRUNCATE TABLE `fe_elements`;  (33.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (5.9ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_references`;  (6.3ms) TRUNCATE TABLE `fe_users`;  (6.6ms) TRUNCATE TABLE `phone_numbers`;  (5.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 158) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 158', 158, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 159) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 159', 159, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 160) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 160', 160, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 161) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 161', 161, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 162) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 162', 162, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', '2023-09-08 21:19:20', '2023-09-08 21:19:20') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the previous elemenet', 1, 'short', '2023-09-08 21:19:20', '2023-09-08 21:19:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:20', '2023-09-08 21:19:20', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.5ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.6ms) TRUNCATE TABLE `fe_addresses`;  (7.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.3ms) TRUNCATE TABLE `fe_answers`;  (7.5ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (9.9ms) TRUNCATE TABLE `fe_elements`;  (6.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.1ms) TRUNCATE TABLE `fe_pages`;  (6.1ms) TRUNCATE TABLE `fe_people`;  (5.4ms) TRUNCATE TABLE `fe_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_references`;  (5.6ms) TRUNCATE TABLE `fe_users`;  (5.9ms) TRUNCATE TABLE `phone_numbers`;  (5.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 163) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 163', 163, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 164) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 164', 164, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 165) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 165', 165, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 166) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 166', 166, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 167) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 167', 167, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the enclosed element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', '2023-09-08 21:19:20', '2023-09-08 21:19:20') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the enclosing element', 1, 'short', 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20') Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:20', '2023-09-08 21:19:20', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:20' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'no', 1, '2023-09-08 21:19:20', '2023-09-08 21:19:20')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (9.3ms) TRUNCATE TABLE `fe_conditions`;  (10.1ms) TRUNCATE TABLE `fe_elements`;  (9.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.4ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (8.2ms) TRUNCATE TABLE `fe_users`;  (8.9ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.9ms) TRUNCATE TABLE `fe_applications`;  (12.0ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 168) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 168', 168, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 169) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 169', 169, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 170) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 170', 170, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 171) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 171', 171, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 172) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 172', 172, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next pag', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, '2023-09-08 21:19:21', '2023-09-08 21:19:21') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:21' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (8.9ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 173) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 173', 173, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 174) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 174', 174, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 175) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 175', 175, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 176) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 176', 176, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 177) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 177', 177, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next page', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, 'yes', '2023-09-08 21:19:21', '2023-09-08 21:19:21') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:21' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer on a hidden page', 1, 'short', '2023-09-08 21:19:21', '2023-09-08 21:19:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (5, 2, '2023-09-08 21:19:21', '2023-09-08 21:19:21', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:21' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.3ms) UPDATE `fe_answers` SET `value` = 'no', `updated_at` = '2023-09-08 21:19:21' WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (6.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (6.7ms) TRUNCATE TABLE `fe_answers`;  (6.7ms) TRUNCATE TABLE `fe_applications`;  (8.8ms) TRUNCATE TABLE `fe_conditions`;  (9.6ms) TRUNCATE TABLE `fe_elements`;  (6.2ms) TRUNCATE TABLE `fe_email_templates`;  (6.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.7ms) TRUNCATE TABLE `fe_pages`;  (5.9ms) TRUNCATE TABLE `fe_people`;  (5.4ms) TRUNCATE TABLE `fe_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_references`;  (5.8ms) TRUNCATE TABLE `fe_users`;  (6.4ms) TRUNCATE TABLE `phone_numbers`;  (5.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.6ms) TRUNCATE TABLE `fe_addresses`;  (6.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.1ms) TRUNCATE TABLE `fe_answers`;  (6.4ms) TRUNCATE TABLE `fe_applications`;  (9.7ms) TRUNCATE TABLE `fe_conditions`;  (10.1ms) TRUNCATE TABLE `fe_elements`;  (6.1ms) TRUNCATE TABLE `fe_email_templates`;  (6.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.2ms) TRUNCATE TABLE `fe_pages`;  (5.8ms) TRUNCATE TABLE `fe_people`;  (6.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (6.2ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (5.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.6ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 178) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 178', 178, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 179) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 179', 179, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 180) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 180', 180, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 181) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 181', 181, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 182) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 182', 182, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.3ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the page', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, 'yes', '2023-09-08 21:19:21', '2023-09-08 21:19:21') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:21' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer on a hidden page', 1, 'short', '2023-09-08 21:19:21', '2023-09-08 21:19:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (5, 2, '2023-09-08 21:19:21', '2023-09-08 21:19:21', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:21' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.4ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:19:21', '2023-09-08 21:19:21')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.4ms) TRUNCATE TABLE `fe_answers`;  (7.4ms) TRUNCATE TABLE `fe_applications`;  (9.3ms) TRUNCATE TABLE `fe_conditions`;  (10.0ms) TRUNCATE TABLE `fe_elements`;  (5.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.3ms) TRUNCATE TABLE `fe_people`;  (5.4ms) TRUNCATE TABLE `fe_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`;  (9.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.6ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (73.1ms) TRUNCATE TABLE `fe_question_sheets`;  (15.3ms) TRUNCATE TABLE `fe_references`;  (7.7ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (12.8ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (14.2ms) TRUNCATE TABLE `fe_elements`;  (8.8ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (8.3ms) TRUNCATE TABLE `fe_pages`;  (7.6ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.2ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 183) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 183', 183, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 184) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 184', 184, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 185) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 185', 185, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 186) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 186', 186, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 187) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 187', 187, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'LVL1', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:22' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'LVL2', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'LVL3 (GRID)', 1, 'grid', 2, '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'LVL4', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 3, '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'EL (LVL5)', 1, 'short', 4, '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:22')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'yes', 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (4, 'yes', 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.6ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_answers` SET `value` = 'no', `updated_at` = '2023-09-08 21:19:22' WHERE `fe_answers`.`id` = 2  (0.8ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (6.4ms) TRUNCATE TABLE `fe_page_elements`;  (5.7ms) TRUNCATE TABLE `fe_pages`;  (6.0ms) TRUNCATE TABLE `fe_people`;  (5.6ms) TRUNCATE TABLE `fe_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_references`;  (5.6ms) TRUNCATE TABLE `fe_users`;  (6.4ms) TRUNCATE TABLE `phone_numbers`;  (5.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 188) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 188', 188, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 189) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 189', 189, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 190) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 190', 190, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 191) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 191', 191, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 192) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 192', 192, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:22', '2023-09-08 21:19:22', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:22' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be moved', 1, 'short', '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:19:22', '2023-09-08 21:19:22', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:22' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be moved to become hidden', 1, 'short', '2023-09-08 21:19:22', '2023-09-08 21:19:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 3, '2023-09-08 21:19:22', '2023-09-08 21:19:22', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:22' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) COMMIT Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_page_elements` SET `position` = 3, `updated_at` = '2023-09-08 21:19:22' WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (position = 3) SQL (0.3ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 4 AND (position > 2) AND (position <= 3 AND id != 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:22' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.4ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (position = 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.4ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`;  (7.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (6.9ms) TRUNCATE TABLE `fe_answers`;  (6.9ms) TRUNCATE TABLE `fe_applications`;  (8.7ms) TRUNCATE TABLE `fe_conditions`;  (9.7ms) TRUNCATE TABLE `fe_elements`;  (6.0ms) TRUNCATE TABLE `fe_email_templates`;  (6.3ms) TRUNCATE TABLE `fe_page_elements`;  (5.7ms) TRUNCATE TABLE `fe_pages`;  (6.0ms) TRUNCATE TABLE `fe_people`;  (6.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (6.0ms) TRUNCATE TABLE `fe_users`;  (8.1ms) TRUNCATE TABLE `phone_numbers`;  (5.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 93', 1, 'short', '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 94', 1, 'short', '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 95', 1, 'short', '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 193) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 193', 193, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (6.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (6.9ms) TRUNCATE TABLE `fe_answers`;  (6.8ms) TRUNCATE TABLE `fe_applications`;  (9.1ms) TRUNCATE TABLE `fe_conditions`;  (9.5ms) TRUNCATE TABLE `fe_elements`;  (6.4ms) TRUNCATE TABLE `fe_email_templates`;  (6.9ms) TRUNCATE TABLE `fe_page_elements`;  (5.8ms) TRUNCATE TABLE `fe_pages`;  (6.3ms) TRUNCATE TABLE `fe_people`;  (5.4ms) TRUNCATE TABLE `fe_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_references`;  (5.8ms) TRUNCATE TABLE `fe_users`;  (6.8ms) TRUNCATE TABLE `phone_numbers`;  (6.2ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 96', 1, 'short', '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 194) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 194', 194, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 195) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 195', 195, 2, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT SQL (1.0ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (1.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (10.8ms) TRUNCATE TABLE `fe_answers`;  (8.8ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (6.4ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 196) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 196', 196, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 97', 1, 'grid', '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 98', 1, 'short', 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT SQL (1.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (9.7ms) TRUNCATE TABLE `fe_applications`;  (12.0ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (6.4ms) TRUNCATE TABLE `fe_people`;  (6.3ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (8.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 197) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 197', 197, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 99', 1, 'grid', '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 100', 1, 'short', 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (11.9ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 198) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 198', 198, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 199) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 199', 199, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 200) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 200', 200, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 201) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 201', 201, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 202) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 202', 202, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 101', 1, 'grid', '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:23' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the previous elemenet', 1, 'short', 1, '2023-09-08 21:19:23', '2023-09-08 21:19:23') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.3ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (9.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (8.0ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', '2023-09-08 21:19:23', '2023-09-08 21:19:23')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 203) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 203', 203, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 204) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 204', 204, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 205) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 205', 205, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 206) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 206', 206, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 207) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 207', 207, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 102', 1, 'grid', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:24' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the previous elemenet', 1, 'short', 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2  (1.0ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (9.6ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (8.7ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.3ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.7ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 103', 1, 'staff', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:24' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 104', 1, 'short', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 105', 1, 'grid', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT Fe::Question Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (9.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.5ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 106', 1, 'short', 1, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.5ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (3.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 107', 1, 'short', 1, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.9ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (8.0ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.8ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 108', 1, 'short', 1, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (8.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.2ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 109', 1, 'short', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 110', 1, 'short', 'test', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 111', 1, 'short', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element', `updated_at` = '2023-09-08 21:19:24' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 208) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 208', 208, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:24' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:24', '2023-09-08 21:19:24', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:24' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL, `updated_at` = '2023-09-08 21:19:24' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:24', '2023-09-08 21:19:24', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:24' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (1.0ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:24')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 2, '2023-09-08 21:19:24', '2023-09-08 21:19:24')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (1.0ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.5ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.2ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (10.7ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (8.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `content_translations`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Label Element 112', 1, 'drop-down', '1\r\n2', '---\nfr: \'\'\n', '2023-09-08 21:19:24', '2023-09-08 21:19:24') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `label_translations`, `tip_translations`, `content_translations`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 113', 1, 'short', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`;  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (7.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `label_translations`, `tip_translations`, `content_translations`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 114', 1, 'short', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n', '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (12.8ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (7.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 115', 1, 'short', '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (8.7ms) TRUNCATE TABLE `fe_people`;  (7.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (5.9ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 116', 1, 'short', 'a 1 2', '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.4ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (6.5ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (8.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 117', 1, 'short', 1, 1, '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:25')  (2.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`;  (7.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 118', 1, 'grid', '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 119', 1, 'short', '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 120', 1, 'short', '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-09-08 21:19:25', '2023-09-08 21:19:25')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 209) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 209', 209, 1, '2023-09-08 21:19:25', '2023-09-08 21:19:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:25', '2023-09-08 21:19:25', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:25' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:25', '2023-09-08 21:19:25', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:25' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:25', '2023-09-08 21:19:25', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:25' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 120', 1, '2023-09-08 21:19:25', '2023-09-08 21:19:25') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:19:25', '2023-09-08 21:19:25', 4) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:25' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (7.9ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 121', 1, 'grid', '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `position`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 122', 1, 'short', 1, 0, '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `position`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 123', 1, 'short', 1, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 210) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 210', 210, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:26' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.3ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `question_grid_id`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 1, 'short', 'Label Element 123', 1, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.5ms) COMMIT Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.6ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.3ms) TRUNCATE TABLE `fe_page_elements`;  (6.1ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (8.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.4ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (9.3ms) TRUNCATE TABLE `phone_numbers`;  (6.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`;  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (12.0ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.9ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (7.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (8.3ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 124', 1, 'short', 1, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 125', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:26')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 211) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 211', 211, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 212) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 212', 212, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 213) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 213', 213, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 214) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 214', 214, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 215) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 215', 215, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 216) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 216', 216, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (1.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 217) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 217', 217, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 218) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 218', 218, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 219) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 219', 219, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 220) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 220', 220, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:26' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:26' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 221) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 221', 221, 3, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 222) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 222', 222, 3, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 223) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 223', 223, 3, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 224) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 224', 224, 3, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 225) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 225', 225, 3, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.3ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (8.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 126', 1, 'short', 1, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 127', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:26')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 226) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 226', 226, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 227) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 227', 227, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 228) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 228', 228, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 229) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 229', 229, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 230) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 230', 230, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (2.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (1.0ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 231) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 231', 231, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 232) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 232', 232, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 233) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 233', 233, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 234) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 234', 234, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 235) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 235', 235, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:19:26', '2023-09-08 21:19:26', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:26' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:26' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_answers` SET `value` = 'match', `updated_at` = '2023-09-08 21:19:26' WHERE `fe_answers`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.9ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (13.1ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.4ms) TRUNCATE TABLE `fe_question_sheets`;  (10.6ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 128', 1, 'short', 1, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 129', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:19:26', '2023-09-08 21:19:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:26')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.7ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 236) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 236', 236, 1, '2023-09-08 21:19:26', '2023-09-08 21:19:26')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 237) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 237', 237, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 238) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 238', 238, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 239) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 239', 239, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 240) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 240', 240, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 241) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 241', 241, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 242) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 242', 242, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 243) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 243', 243, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 244) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 244', 244, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 245) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 245', 245, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27', 1) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.6ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (10.3ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (10.8ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.7ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 130', 1, 'short', 1, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 131', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:27')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 246) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 246', 246, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 247) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 247', 247, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 248) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 248', 248, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 249) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 249', 249, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 250) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 250', 250, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 251) SQL (0.6ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 251', 251, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 252) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 252', 252, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 253) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 253', 253, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 254) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 254', 254, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 255) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 255', 255, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:19:27', '2023-09-08 21:19:27', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (1.1ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.8ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 256) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 256', 256, 3, '2023-09-08 21:19:27', '2023-09-08 21:19:27')  (0.5ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (8.7ms) TRUNCATE TABLE `fe_users`;  (6.8ms) TRUNCATE TABLE `phone_numbers`;  (7.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 132', 1, 'grid', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 133', 1, 'staff', 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 134', 1, 'staff', 4, '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 135', 1, 'staff', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid conditional visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 2, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (12.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.3ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (9.2ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.6ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 136', 1, 'grid', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 137', 1, 'staff', 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 138', 1, 'staff', 4, '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 139', 1, 'staff', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (32.7ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (10.7ms) TRUNCATE TABLE `fe_answers`;  (8.6ms) TRUNCATE TABLE `fe_applications`;  (12.4ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (8.0ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 140', 1, 'grid', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 141', 1, 'staff', 1, '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 142', 1, 'staff', 4, '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 143', 1, 'staff', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:27' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:19:27', '2023-09-08 21:19:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (38.3ms) TRUNCATE TABLE `fe_addresses`;  (10.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (29.6ms) TRUNCATE TABLE `fe_answers`;  (28.8ms) TRUNCATE TABLE `fe_applications`;  (10.2ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (8.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (13.0ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 144', 1, 'grid', '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 145', 1, 'staff', 1, '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:28' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 146', 1, 'staff', 4, '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:28' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 147', 1, 'staff', '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:28' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:19:28', '2023-09-08 21:19:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.9ms) TRUNCATE TABLE `fe_addresses`;  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (8.2ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.6ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (12.1ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (11.4ms) TRUNCATE TABLE `fe_references`;  (8.1ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-09-08 21:19:28', '2023-09-08 21:19:28')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-09-08 21:19:28', '2023-09-08 21:19:28')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 257) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 257', 257, 2, '2023-09-08 21:19:28', '2023-09-08 21:19:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 257) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 257 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:28' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 257)  (0.7ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (2.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 258) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 258', 258, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 148', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 149', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 2) SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 259) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 259', 259, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 150', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 3, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 151', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 4, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT SQL (1.1ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.5ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 260) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 260', 260, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 152', 1, 'grid', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 153', 1, 'short', 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 154', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 2) SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 155', 1, 'section', 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.4ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 261) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `all_element_ids`, `created_at`, `updated_at`) VALUES ('Label Page 261', 261, 2, '', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 262) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `all_element_ids`, `created_at`, `updated_at`) VALUES ('Label Page 262', 262, 3, '', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 156', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 261) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 261 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 261)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (number > 262) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 262 AND id != 2) SQL (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 262)  (0.6ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (6.8ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 263) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 263', 263, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 157', 1, 'grid', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 158', 1, 'short', 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 159', 1, 'section', 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 160', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 4, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 264) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 264', 264, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (20.1ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 161', 1, 'grid', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (9.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 5, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 1) SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 162', 1, 'short', 5, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 163', 1, 'section', 5, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 164', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 8, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (21.5ms) TRUNCATE TABLE `fe_conditions`;  (13.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.2ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 265) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 265', 265, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 165', 1, 'grid', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 166', 1, 'short', 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 167', 1, 'short', '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:29', '2023-09-08 21:19:29', 2) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:29' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'Label Element 168', 1, 'section', 1, '2023-09-08 21:19:29', '2023-09-08 21:19:29') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (10.6ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('test', 'Staff Payment Request Subject', 1, 'Staff Payment Request', '2023-09-08 21:19:30', '2023-09-08 21:19:30')  (0.4ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.2ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (9.9ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (1.2ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('test', 'Staff Payment Request Subject', 1, 'Staff Payment Request', '2023-09-08 21:19:30', '2023-09-08 21:19:30')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 3.6ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.5ms) TRUNCATE TABLE `fe_addresses`;  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (9.9ms) TRUNCATE TABLE `fe_conditions`;  (11.7ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('test', 'Staff Payment Request Subject', 1, 'Staff Payment Request', '2023-09-08 21:19:30', '2023-09-08 21:19:30')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (12.7ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.2ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('test', 'Staff Payment Request Subject', 1, 'Staff Payment Request', '2023-09-08 21:19:30', '2023-09-08 21:19:30')  (0.4ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.8ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (8.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('test', 'Staff Payment Request Subject', 1, 'Staff Payment Request', '2023-09-08 21:19:30', '2023-09-08 21:19:30')  (0.4ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (6.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (6.7ms) TRUNCATE TABLE `phone_numbers`;  (7.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_email_templates` (`content`, `subject`, `enabled`, `name`, `created_at`, `updated_at`) VALUES ('test', 'Staff Payment Request Subject', 1, 'Staff Payment Request', '2023-09-08 21:19:30', '2023-09-08 21:19:30')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (78.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (20.0ms) TRUNCATE TABLE `fe_pages`;  (8.9ms) TRUNCATE TABLE `fe_people`;  (7.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:31')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 266) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 266', 266, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 169', 1, 'short', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`) VALUES ('initial@ref.com', 'fn_25', 'ln_25', 'phone_25', 'relationship_25', 1, 'created', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.8ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"relationship"=>"roommate", "title"=>"A", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "email"=>"email@reference.com"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'answer here', 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: b621fd02-ba7d-4f14-8c50-197c1718ee34) to Test(default) with arguments: gid://dummy/Fe::Application/1, [1] Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '8097a3d4c5b1bff14409ea0a1f557c91' LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = '8097a3d4c5b1bff14409ea0a1f557c91', `updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_applications` SET `locale` = NULL, `updated_at` = '2023-09-08 21:19:31' WHERE `fe_applications`.`id` = 1  (0.4ms) COMMIT  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (1.6ms) Completed 200 OK in 43ms (Views: 19.4ms | ActiveRecord: 8.4ms) Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.8ms) TRUNCATE TABLE `fe_addresses`;  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 267) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 267', 267, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 170', 1, 'short', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 268) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Ref Page', 268, 2, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 171', 1, 'short', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 2, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 2, 'peer', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('initial@ref.com', 'fn_26', 'ln_26', 'phone_26', 'relationship_26', 3, 1, 'created', '2023-09-08 21:19:31', '2023-09-08 21:19:31', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`id` = 1  (11.6ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"2"=>"ref answer here"}, "answer_sheet_type"=>"Fe::ReferenceSheet", "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'ref answer here', 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 192b8452-dc4e-4ad0-931f-408f321f2801) to Test(default) with arguments: gid://dummy/Fe::ReferenceSheet/1, [2]  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_references` SET `locale` = NULL, `updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 20ms (Views: 0.7ms | ActiveRecord: 5.7ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_question_sheets`.id FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.7ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 269) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 268', 269, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (5.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 172', 1, 'short', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 270) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Ref Page', 270, 2, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 173', 1, 'short', 'answer_sheet', 'email', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (2, 2, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 1) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `related_question_sheet_id`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 2, 'peer', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `fe_references` (`email`, `first_name`, `last_name`, `phone`, `relationship`, `question_id`, `applicant_answer_sheet_id`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES ('initial@ref.com', 'fn_27', 'ln_27', 'phone_27', 'relationship_27', 3, 1, 'created', '2023-09-08 21:19:31', '2023-09-08 21:19:31', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = 0, `fe_references`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b28d5fd26aed45f7dc60ce20acaf4eca' LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_references` SET `access_key` = 'b28d5fd26aed45f7dc60ce20acaf4eca', `updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"2"=>"other@email.com"}, "answer_sheet_type"=>"Fe::ReferenceSheet", "a"=>"b28d5fd26aed45f7dc60ce20acaf4eca", "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.3ms) BEGIN SQL (0.3ms) UPDATE `fe_references` SET `email` = 'other@email.com', `updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 5ecc0b94-dc30-4d60-892b-19f21d607aff) to Test(default) with arguments: gid://dummy/Fe::ReferenceSheet/1, [2]  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_references` SET `locale` = NULL, `updated_at` = '2023-09-08 21:19:31' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 16ms (Views: 0.7ms | ActiveRecord: 5.5ms) Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (11.1ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.7ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 271) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 269', 271, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.4ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (2.0ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.7ms) Completed 200 OK in 12ms (Views: 1.6ms | ActiveRecord: 5.1ms)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 272) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 270', 272, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 174', 1, 'short', 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 175', 1, 'short', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.3ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 176', 1, 'short', '2023-09-08 21:19:31', '2023-09-08 21:19:31') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:31', '2023-09-08 21:19:31', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:31' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:31', '2023-09-08 21:19:31')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.7ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (11.0ms) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (1.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (1.3ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (31.2ms) Completed 200 OK in 39ms (Views: 23.5ms | ActiveRecord: 10.2ms)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (12.1ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (6.1ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.8ms) TRUNCATE TABLE `fe_users`;  (8.5ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 273) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 271', 273, 1, '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 177', 1, 'short', 1, '2023-09-08 21:19:32', '2023-09-08 21:19:32') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:32', '2023-09-08 21:19:32', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:32' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 178', 1, 'short', '2023-09-08 21:19:32', '2023-09-08 21:19:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:32', '2023-09-08 21:19:32', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:32' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 179', 1, 'short', '2023-09-08 21:19:32', '2023-09-08 21:19:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:32', '2023-09-08 21:19:32', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:32' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:18:48', '2023-09-08 21:19:32')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.5ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = 0 ORDER BY number Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (2.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (4.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (10.9ms)  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (21.0ms) Completed 200 OK in 29ms (Views: 12.4ms | ActiveRecord: 11.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.4ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (11.0ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (9.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.2ms) TRUNCATE TABLE `fe_conditions`;  (11.8ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (8.5ms) TRUNCATE TABLE `fe_page_elements`;  (7.6ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (8.8ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (13.3ms) TRUNCATE TABLE `fe_conditions`;  (12.0ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.5ms) TRUNCATE TABLE `fe_applications`;  (12.0ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (1.2ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 180', 1, 'drop-down', 'a;b', '2023-09-08 21:19:32', '2023-09-08 21:19:32') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 274) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 272', 274, 2, '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 274) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 274 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:32' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 274)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:32', '2023-09-08 21:19:32', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:32' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (2.6ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'c', 1, '2023-09-08 21:19:32', '2023-09-08 21:19:32')  (0.8ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (11.5ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.6ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (8.6ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 181', 1, 'drop-down', 'a;b', '2023-09-08 21:19:33', '2023-09-08 21:19:33') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 275) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 273', 275, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (number > 275) ORDER BY fe_pages.number ASC LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 275 AND id != 1) SQL (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1, `updated_at` = '2023-09-08 21:19:33' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 275)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:33' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'b', 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.7ms) TRUNCATE TABLE `fe_answers`;  (9.3ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (11.6ms) TRUNCATE TABLE `fe_references`;  (8.4ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.4ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (8.6ms) TRUNCATE TABLE `fe_question_sheets`;  (36.7ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.2ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (12.0ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (9.9ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (9.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (10.5ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.8ms) TRUNCATE TABLE `fe_page_elements`;  (8.9ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.6ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: d90c2162-4cc7-43f3-9faa-aaa7c3ae0a5e) to Test(default) with arguments: gid://dummy/Fe::Application/1, [1] Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.5ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (10.3ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (8.8ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 276) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 274', 276, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 277) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 275', 277, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 278) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 276', 278, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 279) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 277', 279, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 280) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 278', 280, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 182', 1, 'staff', '2023-09-08 21:19:33', '2023-09-08 21:19:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:33' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 183', 1, 'staff', '2023-09-08 21:19:33', '2023-09-08 21:19:33') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:33' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:33' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:33' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 281) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 279', 281, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 282) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 280', 282, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 283) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 281', 283, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 284) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 282', 284, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 285) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 283', 285, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:33', '2023-09-08 21:19:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 184', 1, 'short', '2023-09-08 21:19:33', '2023-09-08 21:19:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`;  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (7.5ms) TRUNCATE TABLE `fe_people`;  (6.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 286) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 284', 286, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 287) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 285', 287, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 288) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 286', 288, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 289) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 287', 289, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 290) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 288', 290, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 185', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 1) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.3ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 186', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 2) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 291) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 289', 291, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 292) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 290', 292, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 293) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 291', 293, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 294) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 292', 294, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 295) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 293', 295, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (12.2ms) TRUNCATE TABLE `fe_elements`;  (8.6ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (9.1ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 296) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 294', 296, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 297) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 295', 297, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 298) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 296', 298, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 299) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 297', 299, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 300) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 298', 300, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 187', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 188', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 301) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 299', 301, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 302) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 300', 302, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 303) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 301', 303, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 304) SQL (0.5ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 302', 304, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 305) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 303', 305, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.9ms) TRUNCATE TABLE `fe_conditions`;  (12.3ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (6.8ms) TRUNCATE TABLE `phone_numbers`;  (6.1ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 306) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 304', 306, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 307) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 305', 307, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 308) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 306', 308, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 309) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 307', 309, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 310) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 308', 310, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 189', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 190', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 311) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 309', 311, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 312) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 310', 312, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 313) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 311', 313, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 314) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 312', 314, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 315) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 313', 315, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.1ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.3ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 316) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 314', 316, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 317) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 315', 317, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 318) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 316', 318, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 319) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 317', 319, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 320) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 318', 320, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 191', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 192', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 321) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 319', 321, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 322) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 320', 322, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 323) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 321', 323, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 324) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 322', 324, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 325) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 323', 325, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.0ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (9.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 326) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 324', 326, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 327) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 325', 327, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 328) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 326', 328, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 329) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 327', 329, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 330) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 328', 330, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 193', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 194', 1, 'staff', '2023-09-08 21:19:34', '2023-09-08 21:19:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:34', '2023-09-08 21:19:34', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:34' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:34', '2023-09-08 21:19:34')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 331) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 329', 331, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 332) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 330', 332, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 333) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 331', 333, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 334) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 332', 334, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 335) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 333', 335, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 336) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 334', 336, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 337) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 335', 337, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 338) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 336', 338, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 339) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 337', 339, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 340) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 338', 340, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yesno lvl1 hidden-gridparent', 0, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'hidden grid', 1, 'grid', 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden required', 1, 'short', 4, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden required2', 1, 'short', 4, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden optional', 0, 'short', 4, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 optional', 0, 'short', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 required', 1, 'short', 'applicant', 'first_name', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 required2', 1, 'short', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yesno2 lvl1 visible-gridparent2', 0, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'visible grid', 1, 'grid', 11, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible required', 1, 'short', 12, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible required2', 1, 'short', 12, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible optional', 0, 'short', 12, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 11, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 8, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 9, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (12, 10, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (1.4ms) COMMIT  (0.3ms) BEGIN SQL (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (3, 'no', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (11, 'yes', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (6, 'this answer is not counted, yesno parent is no so this is hidden', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (7, 'this answer is not counted, yesno parent is no so this is hidden', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (8, 'this answer is counted when optional included', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted', `updated_at` = '2023-09-08 21:19:35' WHERE `fe_people`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (14, 'this answer is counted', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (15, 'this answer is counted when optional included', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 15  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (11.4ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (5.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.1ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 341) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 339', 341, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 342) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 340', 342, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 343) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 341', 343, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 344) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 342', 344, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 345) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 343', 345, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 195', 1, 'staff', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 196', 1, 'staff', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 346) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 344', 346, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 347) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 345', 347, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 348) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 346', 348, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 349) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 347', 349, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 350) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 348', 350, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 351) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 349', 351, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 352) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 350', 352, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 353) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 351', 353, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 354) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 352', 354, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 355) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 353', 355, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yesno lvl1 hidden-gridparent', 0, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'hidden grid', 1, 'grid', 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden required', 1, 'short', 4, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden required2', 1, 'short', 4, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden optional', 0, 'short', 4, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 optional', 0, 'short', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 required', 1, 'short', 'applicant', 'first_name', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 required2', 1, 'short', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yesno2 lvl1 visible-gridparent2', 0, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'visible grid', 1, 'grid', 11, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible required', 1, 'short', 12, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible required2', 1, 'short', 12, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.1ms) COMMIT  (0.3ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible optional', 0, 'short', 12, '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 11, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 8, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 9, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 4) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (12, 10, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (3, 'no', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (11, 'yes', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (6, 'this answer is not counted, yesno parent is no so this is hidden', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (7, 'this answer is not counted, yesno parent is no so this is hidden', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (8, 'this answer is counted when optional included', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted', `updated_at` = '2023-09-08 21:19:35' WHERE `fe_people`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (14, 'this answer is counted', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (15, 'this answer is counted when optional included', 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.8ms) COMMIT Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.1ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (10.3ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 356) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 354', 356, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 357) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 355', 357, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 358) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 356', 358, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 359) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 357', 359, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 360) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 358', 360, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 197', 1, 'staff', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 198', 1, 'staff', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:35' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 361) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 359', 361, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 362) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 360', 362, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 363) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 361', 363, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 364) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 362', 364, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 365) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 363', 365, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 366) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 364', 366, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 367) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 365', 367, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 368) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 366', 368, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 369) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 367', 369, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 370) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 368', 370, 3, '2023-09-08 21:19:35', '2023-09-08 21:19:35')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yesno lvl1 hidden-gridparent', 0, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:35', '2023-09-08 21:19:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'hidden grid', 1, 'grid', 3, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden required', 1, 'short', 4, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden required2', 1, 'short', 4, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 hidden optional', 0, 'short', 4, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 optional', 0, 'short', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 required', 1, 'short', 'applicant', 'first_name', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl1 required2', 1, 'short', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yesno2 lvl1 visible-gridparent2', 0, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'visible grid', 1, 'grid', 11, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible required', 1, 'short', 12, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible required2', 1, 'short', 12, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'lvl2 visible optional', 0, 'short', 12, '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 3, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 11, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 8, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (11, 9, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 4) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (12, 10, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (1.2ms) COMMIT  (0.3ms) BEGIN SQL (2.4ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.9ms) COMMIT Fe::Answer Load (2.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (3, 'no', 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (11, 'yes', 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (6, 'this answer is not counted, yesno parent is no so this is hidden', 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (7, 'this answer is not counted, yesno parent is no so this is hidden', 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (8, 'this answer is counted when optional included', 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted', `updated_at` = '2023-09-08 21:19:36' WHERE `fe_people`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (14, 'this answer is counted', 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (15, 'this answer is counted when optional included', 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.4ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.9ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (1.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '' WHERE `fe_pages`.`id` = 15  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.7ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (7.3ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.9ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (8.0ms) TRUNCATE TABLE `fe_question_sheets`;  (11.4ms) TRUNCATE TABLE `fe_references`;  (9.0ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 371) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 369', 371, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 372) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 370', 372, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 373) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 371', 373, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 374) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 372', 374, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 375) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 373', 375, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 199', 1, 'staff', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 200', 1, 'staff', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 376) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 374', 376, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 377) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 375', 377, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 378) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 376', 378, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 379) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 377', 379, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 380) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 378', 380, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.3ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 201', 1, 'staff', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (12.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (32.3ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (10.6ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (6.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 381) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 379', 381, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 382) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 380', 382, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 383) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 381', 383, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 384) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 382', 384, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 385) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 383', 385, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 202', 1, 'staff', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 1) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 203', 1, 'staff', '2023-09-08 21:19:36', '2023-09-08 21:19:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:19:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 386) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 384', 386, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 387) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 385', 387, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 388) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 386', 388, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 389) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 387', 389, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 390) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 388', 390, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:19:36', '2023-09-08 21:19:36')  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (8.3ms) TRUNCATE TABLE `fe_people`;  (5.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (7.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'fe_test'  (12.8ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.7ms) TRUNCATE TABLE `fe_answers`;  (6.9ms) TRUNCATE TABLE `fe_applications`;  (9.3ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.7ms) TRUNCATE TABLE `fe_pages`;  (7.4ms) TRUNCATE TABLE `fe_people`;  (7.4ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (6.1ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (8.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 1) SQL (0.6ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 1', 1, 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (1.0ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 2) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 2', 2, 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 3) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 3', 3, 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 4) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 4', 4, 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 5) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 5', 5, 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next page', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, 'yes', '2023-09-08 21:20:25', '2023-09-08 21:20:25') Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.7ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:25' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer on a hidden page', 1, 'short', '2023-09-08 21:20:25', '2023-09-08 21:20:25') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (5, 2, '2023-09-08 21:20:25', '2023-09-08 21:20:25', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:25' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.9ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.3ms) COMMIT Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:20:25', '2023-09-08 21:20:25')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.4ms) BEGIN SQL (0.6ms) UPDATE `fe_answers` SET `value` = 'no', `updated_at` = '2023-09-08 21:20:25' WHERE `fe_answers`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.6ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`;  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.4ms) TRUNCATE TABLE `fe_answers`;  (7.4ms) TRUNCATE TABLE `fe_applications`;  (9.5ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.0ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 6) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 6', 6, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.9ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 7) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 7', 7, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 8) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 8', 8, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 9) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 9', 9, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 10) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 10', 10, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next pag', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:26' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (9.6ms) TRUNCATE TABLE `fe_question_sheets`;  (13.5ms) TRUNCATE TABLE `fe_references`;  (8.4ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (5.8ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 11) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 11', 11, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 12) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 12', 12, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 13) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 13', 13, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 14) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 14', 14, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 15) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 15', 15, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the page', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, 'yes', '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:26' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer on a hidden page', 1, 'short', '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (5, 2, '2023-09-08 21:20:26', '2023-09-08 21:20:26', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:26' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:26')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (3.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.9ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (6.7ms) TRUNCATE TABLE `fe_applications`;  (9.4ms) TRUNCATE TABLE `fe_conditions`;  (9.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (8.2ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 16) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 16', 16, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 17) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 17', 17, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 18) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 18', 18, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 19) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 19', 19, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 20) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 20', 20, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'LVL1', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:26' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'LVL2', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'LVL3 (GRID)', 1, 'grid', 2, '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'LVL4', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 3, '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'EL (LVL5)', 1, 'short', 4, '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:26')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'yes', 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'yes', 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (4, 'yes', 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_answers` SET `value` = 'no', `updated_at` = '2023-09-08 21:20:26' WHERE `fe_answers`.`id` = 2  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.5ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`;  (7.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (6.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.2ms) TRUNCATE TABLE `fe_pages`;  (6.4ms) TRUNCATE TABLE `fe_people`;  (5.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_references`;  (6.4ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 21) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 21', 21, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 22) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 22', 22, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 23) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 23', 23, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 24) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 24', 24, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 25) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 25', 25, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the enclosed element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:26' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the enclosing element', 1, 'short', 1, '2023-09-08 21:20:26', '2023-09-08 21:20:26') Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.3ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:20:26', '2023-09-08 21:20:26', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:26' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.7ms) COMMIT Fe::Answer Load (2.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (1, 'no', 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.2ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.0ms) TRUNCATE TABLE `fe_pages`;  (6.4ms) TRUNCATE TABLE `fe_people`;  (5.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (9.5ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.5ms) TRUNCATE TABLE `fe_email_templates`;  (8.5ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (6.1ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_references`;  (6.4ms) TRUNCATE TABLE `fe_users`;  (6.4ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.2ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (11.9ms) TRUNCATE TABLE `fe_elements`;  (6.7ms) TRUNCATE TABLE `fe_email_templates`;  (10.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (8.7ms) TRUNCATE TABLE `fe_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_references`;  (6.4ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (5.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 26) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 26', 26, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 27) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 27', 27, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 28) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 28', 28, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 29) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 29', 29, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 30) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 30', 30, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', '2023-09-08 21:20:27', '2023-09-08 21:20:27') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be moved', 1, 'short', '2023-09-08 21:20:27', '2023-09-08 21:20:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:20:27', '2023-09-08 21:20:27', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.7ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be moved to become hidden', 1, 'short', '2023-09-08 21:20:27', '2023-09-08 21:20:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 3, '2023-09-08 21:20:27', '2023-09-08 21:20:27', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN SQL (0.8ms) UPDATE `fe_page_elements` SET `position` = 3, `updated_at` = '2023-09-08 21:20:27' WHERE `fe_page_elements`.`id` = 2  (0.5ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (position = 3) SQL (0.5ms) UPDATE `fe_page_elements` SET position = (position - 1) WHERE `fe_page_elements`.`page_id` = 4 AND (position > 2) AND (position <= 3 AND id != 2) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (position = 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.9ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (1.3ms) COMMIT Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.3ms) TRUNCATE TABLE `fe_answers`;  (7.5ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.6ms) TRUNCATE TABLE `fe_email_templates`;  (6.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (6.9ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.4ms) TRUNCATE TABLE `fe_answers`;  (7.3ms) TRUNCATE TABLE `fe_applications`;  (9.7ms) TRUNCATE TABLE `fe_conditions`;  (10.4ms) TRUNCATE TABLE `fe_elements`;  (6.3ms) TRUNCATE TABLE `fe_email_templates`;  (9.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.3ms) TRUNCATE TABLE `fe_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_references`;  (6.3ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 31) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 31', 31, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 32) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 32', 32, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 33) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 33', 33, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 34) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 34', 34, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 35) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 35', 35, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next pag', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Page', 5, '2023-09-08 21:20:27', '2023-09-08 21:20:27') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:27', '2023-09-08 21:20:27', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 1, `updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 1)  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 2, `updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 2  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 2)  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 3, `updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 3)  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET `number` = 1, `updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 4  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 1) SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 1) AND (number < 34 AND id != 4)  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET `number` = 4, `updated_at` = '2023-09-08 21:20:27' WHERE `fe_pages`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (number = 4) SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 4) AND (number < 35 AND id != 5)  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.6ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.5ms) TRUNCATE TABLE `fe_conditions`;  (10.2ms) TRUNCATE TABLE `fe_elements`;  (6.6ms) TRUNCATE TABLE `fe_email_templates`;  (6.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (6.2ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (7.9ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (7.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-09-08 21:20:28', '2023-09-08 21:20:28')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 36) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 36', 36, 1, '2023-09-08 21:20:28', '2023-09-08 21:20:28')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 37) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 37', 37, 1, '2023-09-08 21:20:28', '2023-09-08 21:20:28')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 38) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 38', 38, 1, '2023-09-08 21:20:28', '2023-09-08 21:20:28')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 39) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 39', 39, 1, '2023-09-08 21:20:28', '2023-09-08 21:20:28')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 40) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 40', 40, 1, '2023-09-08 21:20:28', '2023-09-08 21:20:28')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', '2023-09-08 21:20:28', '2023-09-08 21:20:28') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:28', '2023-09-08 21:20:28', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:28' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the previous elemenet', 1, 'short', '2023-09-08 21:20:28', '2023-09-08 21:20:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 2, '2023-09-08 21:20:28', '2023-09-08 21:20:28', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:28' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 SQL (0.9ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 2 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1  (0.9ms) COMMIT Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.2ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (10.0ms) TRUNCATE TABLE `fe_elements`;  (6.6ms) TRUNCATE TABLE `fe_email_templates`;  (7.0ms) TRUNCATE TABLE `fe_page_elements`;  (6.2ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (10.2ms) TRUNCATE TABLE `fe_references`;  (7.7ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`;  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.2ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.0ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (5.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (8.6ms) TRUNCATE TABLE `fe_applications`;  (10.8ms) TRUNCATE TABLE `fe_conditions`;  (14.3ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (7.3ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 1', 1, 'short', '2023-09-08 21:20:28', '2023-09-08 21:20:28') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (9.5ms) TRUNCATE TABLE `fe_conditions`;  (10.5ms) TRUNCATE TABLE `fe_elements`;  (6.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.8ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 2', 1, 'short', 'a 1 2', '2023-09-08 21:20:28', '2023-09-08 21:20:28') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (10.5ms) TRUNCATE TABLE `fe_conditions`;  (9.5ms) TRUNCATE TABLE `fe_elements`;  (6.5ms) TRUNCATE TABLE `fe_email_templates`;  (6.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.2ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (7.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `label_translations`, `tip_translations`, `content_translations`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 3', 1, 'short', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n', '2023-09-08 21:20:28', '2023-09-08 21:20:28') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (6.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.3ms) TRUNCATE TABLE `fe_page_elements`;  (5.9ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (7.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `content_translations`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Label Element 4', 1, 'drop-down', '1\r\n2', '---\nfr: \'\'\n', '2023-09-08 21:20:28', '2023-09-08 21:20:28') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (6.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.1ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (6.0ms) TRUNCATE TABLE `fe_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `label_translations`, `tip_translations`, `content_translations`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 5', 1, 'short', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '2023-09-08 21:20:29', '2023-09-08 21:20:29') Fe::Page Load (3.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.8ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.0ms) TRUNCATE TABLE `fe_pages`;  (6.1ms) TRUNCATE TABLE `fe_people`;  (6.4ms) TRUNCATE TABLE `fe_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (7.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.9ms) COMMIT Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (7.3ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (5.8ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (6.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.7ms) COMMIT Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.3ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.1ms) TRUNCATE TABLE `fe_conditions`;  (11.6ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.8ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 6', 1, 'short', '2023-09-08 21:20:29', '2023-09-08 21:20:29') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 7', 1, 'short', '2023-09-08 21:20:29', '2023-09-08 21:20:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 8', 1, 'short', '2023-09-08 21:20:29', '2023-09-08 21:20:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 41) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 41', 41, 1, '2023-09-08 21:20:29', '2023-09-08 21:20:29')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:29', '2023-09-08 21:20:29', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:29' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:20:29', '2023-09-08 21:20:29', 2) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:29' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:20:29', '2023-09-08 21:20:29', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:29' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (11.6ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (7.2ms) TRUNCATE TABLE `fe_applications`;  (11.3ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (8.3ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (6.4ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 9', 1, 'short', 1, 1, '2023-09-08 21:20:29', '2023-09-08 21:20:29') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:29')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (10.4ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.4ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (6.8ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_references`;  (6.6ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 10', 1, 'short', 1, 1, '2023-09-08 21:20:29', '2023-09-08 21:20:29') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.0ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.2ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.5ms) TRUNCATE TABLE `fe_page_elements`;  (6.5ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (7.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.8ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 11', 1, 'short', 1, 1, '2023-09-08 21:20:29', '2023-09-08 21:20:29') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.2ms) TRUNCATE TABLE `fe_addresses`;  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.1ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.4ms) TRUNCATE TABLE `fe_conditions`;  (10.7ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (7.2ms) TRUNCATE TABLE `fe_page_elements`;  (9.3ms) TRUNCATE TABLE `fe_pages`;  (7.8ms) TRUNCATE TABLE `fe_people`;  (7.2ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.4ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 12', 1, 'short', 1, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (10.2ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.4ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.1ms) TRUNCATE TABLE `fe_references`;  (6.5ms) TRUNCATE TABLE `fe_users`;  (7.2ms) TRUNCATE TABLE `phone_numbers`;  (6.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 13', 1, 'staff', '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (3.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:30' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 14', 1, 'short', '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 15', 1, 'grid', '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT Fe::Question Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`;  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.0ms) TRUNCATE TABLE `fe_answers`;  (7.3ms) TRUNCATE TABLE `fe_applications`;  (9.6ms) TRUNCATE TABLE `fe_conditions`;  (9.8ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.6ms) TRUNCATE TABLE `fe_people`;  (7.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (6.7ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 42) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 42', 42, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 16', 1, 'grid', '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:30' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 17', 1, 'short', 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT SQL (1.0ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.9ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.9ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.6ms) TRUNCATE TABLE `fe_people`;  (6.5ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 43) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 43', 43, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 18', 1, 'grid', '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:30' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 19', 1, 'short', 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) COMMIT SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`;  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (11.5ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.4ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (6.2ms) TRUNCATE TABLE `fe_users`;  (6.9ms) TRUNCATE TABLE `phone_numbers`;  (7.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 20', 1, 'short', '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 44) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 44', 44, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 45) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 45', 45, 2, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:30' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (2, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:30' WHERE `fe_pages`.`id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.7ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (7.6ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.7ms) TRUNCATE TABLE `fe_email_templates`;  (7.6ms) TRUNCATE TABLE `fe_page_elements`;  (6.0ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.0ms) TRUNCATE TABLE `fe_question_sheets`;  (9.0ms) TRUNCATE TABLE `fe_references`;  (6.2ms) TRUNCATE TABLE `fe_users`;  (6.7ms) TRUNCATE TABLE `phone_numbers`;  (5.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 46) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 46', 46, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 47) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 47', 47, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 48) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 48', 48, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 49) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 49', 49, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 50) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 50', 50, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 21', 1, 'grid', '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:30' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the previous elemenet', 1, 'short', 1, '2023-09-08 21:20:30', '2023-09-08 21:20:30') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.5ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.5ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2  (0.5ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`;  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (7.9ms) TRUNCATE TABLE `fe_applications`;  (11.1ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (7.5ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.7ms) TRUNCATE TABLE `fe_references`;  (7.9ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 51) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 51', 51, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 52) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 52', 52, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 53) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 53', 53, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 54) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 54', 54, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 55) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 55', 55, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 22', 1, 'grid', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'This is a test for a yes/no question that will hide the next element', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'This is a test of a short answer that will be hidden by the previous elemenet', 1, 'short', 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.5ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2  (1.1ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (50.1ms) TRUNCATE TABLE `fe_addresses`;  (13.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (10.6ms) TRUNCATE TABLE `fe_answers`;  (7.8ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (6.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (7.4ms) TRUNCATE TABLE `fe_pages`;  (6.5ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (16.5ms) TRUNCATE TABLE `fe_references`;  (7.5ms) TRUNCATE TABLE `fe_users`;  (7.0ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 23', 1, 'grid', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 24', 1, 'short', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 25', 1, 'short', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 56) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 56', 56, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 25', 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`element_id`, `page_id`, `created_at`, `updated_at`, `position`) VALUES (4, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 4) SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.5ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (11.4ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (7.3ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.9ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (8.5ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 26', 1, 'grid', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `position`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 27', 1, 'short', 1, 0, '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `position`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 28', 1, 'short', 1, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 57) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 57', 57, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.3ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `question_grid_id`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 1, 'short', 'Label Element 28', 1, 2, '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`;  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.7ms) TRUNCATE TABLE `fe_answers`;  (8.3ms) TRUNCATE TABLE `fe_applications`;  (10.2ms) TRUNCATE TABLE `fe_conditions`;  (12.3ms) TRUNCATE TABLE `fe_elements`;  (7.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.1ms) TRUNCATE TABLE `fe_page_elements`;  (6.7ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (7.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.3ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (2.1ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 29', 1, 'short', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 30', 1, 'short', 'test', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 31', 1, 'short', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element', `updated_at` = '2023-09-08 21:20:31' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 58) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 58', 58, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 2, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 SQL (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL, `updated_at` = '2023-09-08 21:20:31' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (1, 3, '2023-09-08 21:20:31', '2023-09-08 21:20:31', 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:31' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.7ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 3 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.5ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 2, '2023-09-08 21:20:31', '2023-09-08 21:20:31')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.8ms) TRUNCATE TABLE `fe_answers`;  (7.5ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.8ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (6.7ms) TRUNCATE TABLE `fe_people`;  (8.3ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.4ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 32', 1, 'grid', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:20:31', '2023-09-08 21:20:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 33', 1, 'staff', 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 34', 1, 'staff', 4, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 35', 1, 'staff', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid conditional visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 2, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (12.8ms) COMMIT Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.1ms) TRUNCATE TABLE `fe_addresses`;  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.1ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (10.9ms) TRUNCATE TABLE `fe_elements`;  (7.3ms) TRUNCATE TABLE `fe_email_templates`;  (8.4ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (7.0ms) TRUNCATE TABLE `fe_people`;  (6.8ms) TRUNCATE TABLE `fe_question_sheets`;  (9.5ms) TRUNCATE TABLE `fe_references`;  (7.0ms) TRUNCATE TABLE `fe_users`;  (7.7ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 36', 1, 'grid', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 37', 1, 'staff', 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (3.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 38', 1, 'staff', 4, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 39', 1, 'staff', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.6ms) TRUNCATE TABLE `fe_addresses`;  (9.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_answers`;  (8.4ms) TRUNCATE TABLE `fe_applications`;  (10.9ms) TRUNCATE TABLE `fe_conditions`;  (10.8ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.8ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (7.1ms) TRUNCATE TABLE `fe_question_sheets`;  (9.6ms) TRUNCATE TABLE `fe_references`;  (30.7ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (7.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 40', 1, 'grid', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 41', 1, 'staff', 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 42', 1, 'staff', 4, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 43', 1, 'staff', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.5ms) TRUNCATE TABLE `fe_addresses`;  (11.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.0ms) TRUNCATE TABLE `fe_elements`;  (8.5ms) TRUNCATE TABLE `fe_email_templates`;  (7.8ms) TRUNCATE TABLE `fe_page_elements`;  (9.7ms) TRUNCATE TABLE `fe_pages`;  (7.8ms) TRUNCATE TABLE `fe_people`;  (9.2ms) TRUNCATE TABLE `fe_question_sheets`;  (9.2ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'Label Element 44', 1, 'grid', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the grid visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 1, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `question_grid_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 45', 1, 'staff', 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 SQL (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'is the ref element inside this element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `choice_field_id`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 46', 1, 'staff', 4, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next choice element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 4, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'Label Element 47', 1, 'staff', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 SQL (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-08 21:20:32' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `content`, `conditional_type`, `conditional_id`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'Is the next ref element visible?', 1, 'yes-no', 'Choice One\r\nChoice Two\r\nChoice Three', 'Fe::Element', 7, 'yes', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.4ms) TRUNCATE TABLE `fe_addresses`;  (11.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (9.4ms) TRUNCATE TABLE `fe_answers`;  (8.5ms) TRUNCATE TABLE `fe_applications`;  (10.7ms) TRUNCATE TABLE `fe_conditions`;  (11.3ms) TRUNCATE TABLE `fe_elements`;  (7.2ms) TRUNCATE TABLE `fe_email_templates`;  (8.2ms) TRUNCATE TABLE `fe_page_elements`;  (7.2ms) TRUNCATE TABLE `fe_pages`;  (9.9ms) TRUNCATE TABLE `fe_people`;  (6.4ms) TRUNCATE TABLE `fe_question_sheets`;  (10.0ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.9ms) TRUNCATE TABLE `phone_numbers`;  (7.0ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 48', 1, 'short', 1, 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 49', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:20:32', '2023-09-08 21:20:32') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:32')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-09-08 21:20:32', '2023-09-08 21:20:32')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 59) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 59', 59, 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 60) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 60', 60, 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 61) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 61', 61, 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 62) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 62', 62, 1, '2023-09-08 21:20:32', '2023-09-08 21:20:32')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 63) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 63', 63, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 64) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 64', 64, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 65) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 65', 65, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 66) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 66', 66, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 67) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 67', 67, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 68) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 68', 68, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.7ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 69) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 69', 69, 3, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (7.7ms) TRUNCATE TABLE `fe_applications`;  (10.3ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (7.7ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (7.5ms) TRUNCATE TABLE `fe_question_sheets`;  (10.1ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.8ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 50', 1, 'short', 1, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 51', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:20:33', '2023-09-08 21:20:33') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:33')  (0.5ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 70) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 70', 70, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 71) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 71', 71, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 72) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 72', 72, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 73) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 73', 73, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 74) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 74', 74, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 75) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 75', 75, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 76) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 76', 76, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 77) SQL (0.6ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 77', 77, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 78) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 78', 78, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 79) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 79', 79, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 2) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_answers` SET `value` = 'match', `updated_at` = '2023-09-08 21:20:33' WHERE `fe_answers`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`;  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (37.9ms) TRUNCATE TABLE `fe_answers`;  (13.6ms) TRUNCATE TABLE `fe_applications`;  (12.4ms) TRUNCATE TABLE `fe_conditions`;  (11.1ms) TRUNCATE TABLE `fe_elements`;  (6.9ms) TRUNCATE TABLE `fe_email_templates`;  (8.0ms) TRUNCATE TABLE `fe_page_elements`;  (8.4ms) TRUNCATE TABLE `fe_pages`;  (7.1ms) TRUNCATE TABLE `fe_people`;  (7.7ms) TRUNCATE TABLE `fe_question_sheets`;  (9.8ms) TRUNCATE TABLE `fe_references`;  (7.2ms) TRUNCATE TABLE `fe_users`;  (7.5ms) TRUNCATE TABLE `phone_numbers`;  (6.6ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 52', 1, 'short', 1, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 53', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:20:33', '2023-09-08 21:20:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:33')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 80) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 80', 80, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 81) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 81', 81, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 82) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 82', 82, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 83) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 83', 83, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 84) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 84', 84, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 85) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 85', 85, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 86) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 86', 86, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 87) SQL (0.4ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 87', 87, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 88) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 88', 88, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 89) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 89', 89, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.6ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 2) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.4ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.4ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 90) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 90', 90, 3, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 91) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 91', 91, 3, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 92) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 92', 92, 3, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 93) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 93', 93, 3, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 3 AND (number >= 94) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 94', 94, 3, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`;  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (8.4ms) TRUNCATE TABLE `fe_answers`;  (8.1ms) TRUNCATE TABLE `fe_applications`;  (10.6ms) TRUNCATE TABLE `fe_conditions`;  (11.2ms) TRUNCATE TABLE `fe_elements`;  (7.0ms) TRUNCATE TABLE `fe_email_templates`;  (7.9ms) TRUNCATE TABLE `fe_page_elements`;  (6.6ms) TRUNCATE TABLE `fe_pages`;  (6.9ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (9.9ms) TRUNCATE TABLE `fe_references`;  (7.1ms) TRUNCATE TABLE `fe_users`;  (7.6ms) TRUNCATE TABLE `phone_numbers`;  (6.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 54', 1, 'short', 1, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `fe_elements` (`kind`, `label`, `required`, `style`, `is_confidential`, `share`, `conditional_type`, `conditional_answer`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'Label Element 55', 1, 'short', 1, 1, 'Fe::Element', 'match', '2023-09-08 21:20:33', '2023-09-08 21:20:33') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-08 21:20:25', '2023-09-08 21:20:33')  (0.5ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `fe_answers` (`question_id`, `value`, `answer_sheet_id`, `created_at`, `updated_at`) VALUES (2, 'nomatch', 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 95) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 95', 95, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 96) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 96', 96, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 97) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 97', 97, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 98) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 98', 98, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 1 AND (number >= 99) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 99', 99, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 100) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 100', 100, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 101) SQL (0.3ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 101', 101, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 102) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 102', 102, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 103) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 103', 103, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `fe_pages` SET number = (number + 1) WHERE `fe_pages`.`question_sheet_id` = 2 AND (number >= 104) SQL (0.2ms) INSERT INTO `fe_pages` (`label`, `number`, `question_sheet_id`, `created_at`, `updated_at`) VALUES ('Label Page 104', 104, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 2, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 1) Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.8ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE (fe_page_elements.position IS NOT NULL) AND `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position DESC LIMIT 1 SQL (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `created_at`, `updated_at`, `position`) VALUES (6, 1, '2023-09-08 21:20:33', '2023-09-08 21:20:33', 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`updated_at` = '2023-09-08 21:20:33' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.3ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 SQL (0.5ms) UPDATE `fe_elements` SET `fe_elements`.`conditional_id` = 1 WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2  (0.7ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.4ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC SQL (0.2ms) UPDATE `fe_pages` SET `fe_pages`.`all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`;  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`;  (7.9ms) TRUNCATE TABLE `fe_answers`;  (8.0ms) TRUNCATE TABLE `fe_applications`;  (11.0ms) TRUNCATE TABLE `fe_conditions`;  (41.7ms) TRUNCATE TABLE `fe_elements`;  (14.1ms) TRUNCATE TABLE `fe_email_templates`;  (8.8ms) TRUNCATE TABLE `fe_page_elements`;  (7.1ms) TRUNCATE TABLE `fe_pages`;  (7.2ms) TRUNCATE TABLE `fe_people`;  (6.6ms) TRUNCATE TABLE `fe_question_sheets`;  (13.6ms) TRUNCATE TABLE `fe_references`;  (6.8ms) TRUNCATE TABLE `fe_users`;  (7.3ms) TRUNCATE TABLE `phone_numbers`;  (6.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) SET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) select table_name from information_schema.views where table_schema = 'fe_test'  (38.2ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (34.8ms) TRUNCATE TABLE `fe_elements`  (42.1ms) TRUNCATE TABLE `fe_email_templates`  (150.5ms) TRUNCATE TABLE `fe_page_elements`  (13.3ms) TRUNCATE TABLE `fe_pages`  (9.4ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:10', '2023-09-11 15:46:10')  (11.8ms) COMMIT  (0.4ms) BEGIN Fe::DateField Create (3.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-11 15:46:11', '2023-09-11 15:46:11') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (11.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.9ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-09-11 15:46:11', '2023-09-11 15:46:11')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.1ms) TRUNCATE TABLE `fe_addresses`  (10.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (36.7ms) TRUNCATE TABLE `fe_references`  (10.9ms) TRUNCATE TABLE `fe_users`  (9.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:11', '2023-09-11 15:46:11')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-11 15:46:11', '2023-09-11 15:46:11') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-09-11 15:46:11', '2023-09-11 15:46:11')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:11', '2023-09-11 15:46:11')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-11 15:46:11', '2023-09-11 15:46:11') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:11 UTC', '2023-09-11 15:46:11', '2023-09-11 15:46:11')  (0.8ms) COMMIT Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.3ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:12.464761' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 1) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 1', 1, '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:12.473003' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 2) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 2', 2, '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:12.477643' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 3) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 3', 3, '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:12.481095' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 4) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 4', 4, '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:12.484176' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 5) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 5', 5, '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (0.5ms) COMMIT  (0.4ms) BEGIN Fe::ChoiceField Create (3.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will show the next element if the answer is yes', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:12', '2023-09-11 15:46:12', 'Fe::Element', 'yes') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.8ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:12', '2023-09-11 15:46:12') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:12' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that is made visible by the previous element', TRUE, '2023-09-11 15:46:12', '2023-09-11 15:46:12') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:12', '2023-09-11 15:46:12') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:12' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:12', '2023-09-11 15:46:12')  (16.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (0.5ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.5ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (3.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 15:46:12', '2023-09-11 15:46:12')  (11.8ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.8ms) UPDATE `fe_answers` SET `value` = 'yes' WHERE `fe_answers`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.2ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (9.4ms) TRUNCATE TABLE `fe_applications`  (12.4ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (8.6ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (55.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (14.9ms) TRUNCATE TABLE `fe_elements`  (19.0ms) TRUNCATE TABLE `fe_email_templates`  (12.0ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (11.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-09-11 15:46:13', '2023-09-11 15:46:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:13.600197' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 6) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 6', 6, '2023-09-11 15:46:13', '2023-09-11 15:46:13')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 1', TRUE, '2023-09-11 15:46:13', '2023-09-11 15:46:13') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:13', '2023-09-11 15:46:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:13' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.7ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 2', TRUE, '2023-09-11 15:46:13', '2023-09-11 15:46:13') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.1ms) TRUNCATE TABLE `fe_addresses`  (10.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-09-11 15:46:13', '2023-09-11 15:46:13')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:13.888740' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 7) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 7', 7, '2023-09-11 15:46:13', '2023-09-11 15:46:13')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 3', TRUE, '2023-09-11 15:46:13', '2023-09-11 15:46:13') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:13', '2023-09-11 15:46:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:13' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 4', TRUE, '2023-09-11 15:46:13', '2023-09-11 15:46:13') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 5', TRUE, '2023-09-11 15:46:13', '2023-09-11 15:46:13') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.2ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (1.0ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (46.9ms) TRUNCATE TABLE `fe_addresses`  (49.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (48.6ms) TRUNCATE TABLE `fe_answers`  (50.9ms) TRUNCATE TABLE `fe_applications`  (14.2ms) TRUNCATE TABLE `fe_conditions`  (44.8ms) TRUNCATE TABLE `fe_elements`  (6.3ms) TRUNCATE TABLE `fe_email_templates`  (43.5ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (46.5ms) TRUNCATE TABLE `fe_people`  (48.5ms) TRUNCATE TABLE `fe_question_sheets`  (52.1ms) TRUNCATE TABLE `fe_references`  (12.3ms) TRUNCATE TABLE `fe_users`  (49.3ms) TRUNCATE TABLE `phone_numbers`  (47.9ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-09-11 15:46:14', '2023-09-11 15:46:14')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:14.521974' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 8) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 8', 8, '2023-09-11 15:46:14', '2023-09-11 15:46:14')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'section', 'Label Element 6', TRUE, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:14' WHERE `fe_pages`.`id` = 1  (38.9ms) COMMIT Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (30.3ms) TRUNCATE TABLE `fe_addresses`  (10.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (17.4ms) TRUNCATE TABLE `fe_email_templates`  (11.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-09-11 15:46:14', '2023-09-11 15:46:14')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:14.759448' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 9) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 9', 9, '2023-09-11 15:46:14', '2023-09-11 15:46:14')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 7', TRUE, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:14' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-09-11 15:46:14', '2023-09-11 15:46:14')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:14.913637' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 10) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 10', 10, '2023-09-11 15:46:14', '2023-09-11 15:46:14')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 8', TRUE, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 9', TRUE, '2023-09-11 15:46:14', '2023-09-11 15:46:14', 1, 'Fe::Element', 'asdf') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:14' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:14' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGridWithTotal Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::QuestionGridWithTotal', 'grid', 'Label Element 10', TRUE, '2023-09-11 15:46:14', '2023-09-11 15:46:14') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'short', 'Label Element 11', TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'asdf', '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'something else' WHERE `fe_answers`.`id` = 1  (2.5ms) COMMIT Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.6ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:15.288819' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 11) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 11', 11, '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.6ms) COMMIT Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (9.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:15.431150' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 12) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 12', 12, '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.4ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:15.570011' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 13) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 13', 13, '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 12', TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:15' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 13', TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 14', TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:15' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 15', TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (8.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:15.768617' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 14) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (1, 'Label Page 14', 14, '2023-09-11 15:46:15', '2023-09-11 15:46:15', '2,1')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 16', TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 17', TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (5.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (11.1ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:15.933061' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 15) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 15', 15, TRUE, '2023-09-11 15:46:15', '2023-09-11 15:46:15')  (7.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.9ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.8ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (8.7ms) TRUNCATE TABLE `fe_conditions`  (77.4ms) TRUNCATE TABLE `fe_elements`  (107.4ms) TRUNCATE TABLE `fe_email_templates`  (12.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (77.7ms) TRUNCATE TABLE `fe_references`  (9.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (8.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:16.313224' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 16) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 16', 16, '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 18', TRUE, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:16' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 19', TRUE, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 20', TRUE, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:16' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 21', TRUE, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:16.520548' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 17) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 17', 17, '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 22', TRUE, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:16' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 15:46:16.555908' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:16' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:16.689783' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 18) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 18', 18, '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.5ms) COMMIT Fe::Element Load (2.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.1ms) TRUNCATE TABLE `fe_addresses`  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:16.839479' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 19', 19, '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:16.843614' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 19', 19, '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.9ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:16.987580' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 20) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 20', 20, '2023-09-11 15:46:16', '2023-09-11 15:46:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGridWithTotal Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'grid', 'Label Element 23', TRUE, '2023-09-11 15:46:16', '2023-09-11 15:46:16') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Update All (0.5ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-09-11 15:46:17.001561' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 1) Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:17', '2023-09-11 15:46:17') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:17' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 24', TRUE, '2023-09-11 15:46:17', '2023-09-11 15:46:17') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 25', TRUE, '2023-09-11 15:46:17', '2023-09-11 15:46:17') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-09-11 15:46:17.049236' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 2) Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 15:46:17', '2023-09-11 15:46:17') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:17' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 26', TRUE, '2023-09-11 15:46:17', '2023-09-11 15:46:17') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceSheet Create (1.4ms) INSERT INTO `fe_references` (`relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES ('relationship_1', 'fn_1', 'ln_1', 'phone_1', 'email_1@email.com', 'created', '2023-09-11 15:46:17', '2023-09-11 15:46:17')  (1.0ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Person Create (1.5ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:17', '2023-09-11 15:46:17')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:17', '2023-09-11 15:46:17')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.4ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_2', 'fn_2', 'ln_2', 'phone_2', 'email_2@email.com', 'created', '2023-09-11 15:46:17', '2023-09-11 15:46:17')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:17', '2023-09-11 15:46:17')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:17', '2023-09-11 15:46:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.5ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_3', 'fn_3', 'ln_3', 'phone_3', 'email_3@email.com', 'created', '2023-09-11 15:46:17', '2023-09-11 15:46:17')  (0.7ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 15:46:17', '2023-09-11 15:46:17', 1) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 15:46:17' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:17', '2023-09-11 15:46:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 1, 'relationship_4', 'fn_4', 'ln_4', 'phone_4', 'email_4@email.com', 'created', '2023-09-11 15:46:17', '2023-09-11 15:46:17', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (2.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:17' WHERE `fe_references`.`id` = 1  (12.1ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (21.6ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (8.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.143242' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 21) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 21', 21, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 21) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.149297' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 21) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 27', TRUE, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:18' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.4ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 14:46:18', 'relationship_5', 'fn_5', 'ln_5', 'phone_5', 'email_5@email.com', 'started', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (2.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`id` = 1  (20.4ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::EmailTemplate Create (0.8ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.9ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.7ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'd131e8e5712f2aafbfcd4bf552418521' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'd131e8e5712f2aafbfcd4bf552418521', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (20.8ms) COMMIT  (1.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.1ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (13.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.445457' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 22) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 22', 22, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 22) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.451565' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 22) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 28', TRUE, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:18' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 14:46:18', 'relationship_6', 'fn_6', 'ln_6', 'phone_6', 'email_6@email.com', 'started', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.5ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '19779fa7917359ccc38c1422d640ced6' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = '19779fa7917359ccc38c1422d640ced6', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.4ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (11.2ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.655628' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 23) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 23', 23, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 23) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.661416' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 23) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 29', TRUE, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:18' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 14:46:18', 'relationship_7', 'fn_7', 'ln_7', 'phone_7', 'email_7@email.com', 'started', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) [1mCOMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'created' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '080e0ecc09a7bd92f753145f98eb0dac' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `access_key` = '080e0ecc09a7bd92f753145f98eb0dac', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.858864' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 24', 24, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 24) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:18.864577' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 24) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 30', TRUE, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:18', '2023-09-11 15:46:18') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:18' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 14:46:18', 'relationship_8', 'fn_8', 'ln_8', 'phone_8', 'email_8@email.com', 'started', '2023-09-11 15:46:18', '2023-09-11 15:46:18', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:18' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 15:46:18', '2023-09-11 15:46:18')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.058292' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 25) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 25', 25, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 25) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.063881' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 25) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 31', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:19' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:19', '2023-09-11 15:46:19', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 14:46:19', 'relationship_9', 'fn_9', 'ln_9', 'phone_9', 'email_9@email.com', 'started', '2023-09-11 15:46:19', '2023-09-11 15:46:19', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`id` = 1  (17.0ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.7ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.8ms) COMMIT Fe::ReferenceSheet Update (0.9ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.3ms) COMMIT Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 32', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (1.0ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_10', 'fn_10', 'ln_10', 'phone_10', 'email_10@email.com', 'created', '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`id` = 1  (15.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 33', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (20.5ms) COMMIT Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'some text response', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.8ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 34', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_11', 'fn_11', 'ln_11', 'phone_11', 'email_11@email.com', 'created', '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 35', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.707499' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 26) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 26', 26, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.712402' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 27) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 27', 27, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.715733' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 28) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 28', 28, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.719106' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 29) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 29', 29, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.722370' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 30) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 30', 30, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 36', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (2.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:19' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:19' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 37', TRUE, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:19' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.811350' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 31) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 31', 31, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.814677' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 32) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 32', 32, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.817714' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 33) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 33', 33, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.820994' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 34) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 34', 34, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:19.824333' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 35) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 35', 35, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_12', 'fn_12', 'ln_12', 'phone_12', 'email_12@email.com', 'created', '2023-09-11 15:46:19', '2023-09-11 15:46:19') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`id` = 1  (7.0ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceSheet Update (0.6ms) UPDATE `fe_references` SET `visible` = FALSE WHERE `fe_references`.`id` = 1  (0.3ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 15:46:19', '2023-09-11 15:46:19')  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911154619000000', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 15:46:19' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (11.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.024872' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 36) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 36', 36, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.031199' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 37) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 37', 37, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.034835' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 38) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 38', 38, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.038000' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 39) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 39', 39, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.041269' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 40) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 40', 40, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 38', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (2.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 39', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.132876' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 41) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 41', 41, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.136274' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 42) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 42', 42, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.139558' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 43) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 43', 43, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.142914' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 44) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 44', 44, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.145964' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 45) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 45', 45, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.8ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_13', 'fn_13', 'ln_13', 'phone_13', 'email_13@email.com', 'created', '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911154620000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`id` = 1  (6.3ms) COMMIT Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.335888' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 46) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 46', 46, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.340293' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 47) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 47', 47, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.343756' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 48) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 48', 48, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.347163' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 49) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 49', 49, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.350245' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 50) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 50', 50, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 40', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20', 1, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 41', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.445334' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 51) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 51', 51, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.448804' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 52) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 52', 52, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.452340' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 53) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 53', 53, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.455306' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 54) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 54', 54, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.458434' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 55) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 55', 55, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_14', 'fn_14', 'ln_14', 'phone_14', 'email_14@email.com', 'created', '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.9ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `visible` = FALSE, `visibility_cache_key` = 'something' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911154620000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (17.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (16.3ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.665040' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 56) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 56', 56, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (11.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.681039' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 57) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 57', 57, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.686098' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 58) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 58', 58, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.689374' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 59) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 59', 59, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.692644' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 60) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 60', 60, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 42', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20', 1, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 43', TRUE, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:20' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.794293' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 61) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 61', 61, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.797844' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 62) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 62', 62, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.801148' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 63) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 63', 63, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.804495' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 64) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 64', 64, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:20.807672' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 65) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 65', 65, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 15:46:20', '2023-09-11 15:46:20')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_15', 'fn_15', 'ln_15', 'phone_15', 'email_15@email.com', 'created', '2023-09-11 15:46:20', '2023-09-11 15:46:20') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911154620000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:20' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.7ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-09-11 15:46:21' WHERE `fe_answers`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '212f8ce2fc6de84621b565c7bad29226' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '3042b04a8d2cdce41523fd36f081cd80' LIMIT 1 Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'd8a196c7ca1cce9ea9f392e940fc3ee7' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '798b668bd0897793b313be4dcb18672e' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '64eb73f7d9c233ede40e5a8655d8bd25' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '31a27959373f2c16fab5c82140205f49' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'a7a9cf930aa7f73b09cc52c5261bc8d4' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b4924607aa2bce45ffcea7ee875830ab' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '0b1425de9378d18863811f49349feec5' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '2cede9169292f28580d7ecc2f045ccc5' LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.135269' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 66) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 66', 66, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.140881' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 67) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 67', 67, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.145115' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 68) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 68', 68, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.149819' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 69) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 69', 69, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.153883' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 70) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 70', 70, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:22' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_16', 'fn_16', 'ln_16', 'phone_16', 'email_16@email.com', 'created', '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (11.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.389018' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 71) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 71', 71, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.394718' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 72) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 72', 72, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.399597' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 73) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 73', 73, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.403718' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 74) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 74', 74, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.407949' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 75) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 75', 75, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (1.2ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:22' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_17', 'fn_17', 'ln_17', 'phone_17', 'email_17@email.com', 'created', '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (2.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.624389' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 76) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 76', 76, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.629917' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 77) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 77', 77, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.644530' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 78) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 78', 78, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.647582' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 79) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 79', 79, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.650893' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 80) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 80', 80, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', FALSE, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_18', 'fn_18', 'ln_18', 'phone_18', 'email_18@email.com', 'created', '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.816360' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 81) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 81', 81, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.820837' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 82) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 82', 82, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.824178' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 83) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 83', 83, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.827345' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 84) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 84', 84, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:22.830295' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 85) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 85', 85, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:22' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 15:46:22', '2023-09-11 15:46:22', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:22' WHERE `fe_pages`.`id` = 4  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:22', '2023-09-11 15:46:22')  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_19', 'fn_19', 'ln_19', 'phone_19', 'email_19@email.com', 'created', '2023-09-11 15:46:22', '2023-09-11 15:46:22') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (2.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 15:46:22' WHERE `fe_references`.`id` = 1  (6.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 15:46:22', '2023-09-11 15:46:22')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.079495' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 86) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 86', 86, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.083699' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 87) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 87', 87, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.087049' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 88) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 88', 88, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.090229' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 89) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 89', 89, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.093198' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 90) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 90', 90, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:23', '2023-09-11 15:46:23', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:23' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (2.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:23' WHERE `fe_pages`.`id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_20', 'fn_20', 'ln_20', 'phone_20', 'email_20@email.com', 'created', '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (32.4ms) TRUNCATE TABLE `fe_answers`  (12.5ms) TRUNCATE TABLE `fe_applications`  (12.2ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.375173' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 91) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 91', 91, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.379470' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 92) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 92', 92, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.382812' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 93) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 93', 93, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.386354' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 94) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 94', 94, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.389863' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 95) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 95', 95, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:23' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 15:46:23', '2023-09-11 15:46:23', 1) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (3.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:23' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 3, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:23' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_21', 'fn_21', 'ln_21', 'phone_21', 'email_21@email.com', 'created', '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (8.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.669638' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 96) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 96', 96, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.674304' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 97) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 97', 97, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.677669' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 98) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 98', 98, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.680886' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 99) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 99', 99, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:23.684010' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 100) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 100', 100, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:23', '2023-09-11 15:46:23', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:23' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:23' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_22', 'fn_22', 'ln_22', 'phone_22', 'email_22@email.com', 'created', '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:23' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 15:46:23', '2023-09-11 15:46:23')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (9.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::Paragraph Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'abc', '2023-09-11 15:46:23', '2023-09-11 15:46:23') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (8.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Paragraph Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'Lorem ipsum...', '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (10.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (9.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (8.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.235266' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 101) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 101', 101, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.240425' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 102) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 102', 102, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.243836' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 103) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 103', 103, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.246990' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 104) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 104', 104, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.250449' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 105) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 105', 105, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 44', TRUE, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:24' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 45', TRUE, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:24' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:24', '2023-09-11 15:46:24')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.314767' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 106) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 106', 106, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.317921' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 107) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 107', 107, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.320952' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 108) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 108', 108, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.323988' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 109) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 109', 109, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.326994' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 110) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 110', 110, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.463748' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 111) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 111', 111, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.468033' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 112) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 112', 112, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.471192' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 113) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 113', 113, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.474461' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 114) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 114', 114, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.477876' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 115) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 115', 115, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 46', TRUE, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:24' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 47', TRUE, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:24' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (30.2ms) COMMIT  (0.4ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (18.8ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.596516' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 116) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 116', 116, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (13.1ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.615708' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 117) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 117', 117, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.621812' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 118) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 118', 118, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.626330' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 119) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 119', 119, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.630009' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 120) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 120', 120, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (18.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.774075' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 121) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 121', 121, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.778971' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 122) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 122', 122, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.782698' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 123) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 123', 123, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.785719' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 124) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 124', 124, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.788871' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 125) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 125', 125, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 48', TRUE, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:24' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 49', TRUE, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:24', '2023-09-11 15:46:24') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:24' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:24' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::Application Create (2.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:24', '2023-09-11 15:46:24')  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (2.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.859832' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 126) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 126', 126, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.864532' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 127) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 127', 127, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.867728' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 128) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 128', 128, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.870911' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 129', 129, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:24.874203' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 130) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 130', 130, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:24', '2023-09-11 15:46:24')  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.010395' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 131) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 131', 131, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.015072' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 132) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 132', 132, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.019365' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 133) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 133', 133, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.023098' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 134) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 134', 134, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.026549' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 135) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 135', 135, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 50', TRUE, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:25' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 51', TRUE, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:25' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.098488' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 136) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 136', 136, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.101659' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 137) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 137', 137, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.104628' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 138) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 138', 138, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.107756' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 139) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 139', 139, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.110973' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 140) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 140', 140, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.246837' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 141) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 141', 141, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.251455' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 142) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 142', 142, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.254896' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 143) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 143', 143, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.258132' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 144) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 144', 144, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.261409' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 145) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 145', 145, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 52', TRUE, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:25' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 53', TRUE, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:25' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.322705' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 146) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 146', 146, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.325857' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 147) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 147', 147, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.329177' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 148', 148, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.332282' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 149) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 149', 149, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.335569' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 150) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 150', 150, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (37.3ms) TRUNCATE TABLE `fe_addresses`  (13.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.518672' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 151', 151, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.523282' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 152) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 152', 152, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.526546' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 153) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 153', 153, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.529769' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 154) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 154', 154, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.532854' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 155) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 155', 155, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 54', TRUE, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:25' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 55', TRUE, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:25' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.595395' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 156) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 156', 156, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.598924' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 157) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 157', 157, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.602041' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 158) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 158', 158, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.604960' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 159) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 159', 159, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:25.607993' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 160) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 160', 160, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:25', '2023-09-11 15:46:25')  (0.4ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 56', TRUE, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:25', '2023-09-11 15:46:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:25' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:25' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.4ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (75.5ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (170.8ms) TRUNCATE TABLE `fe_answers`  (32.4ms) TRUNCATE TABLE `fe_applications`  (12.6ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (12.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.4ms) TRUNCATE TABLE `phone_numbers`  (35.0ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (2.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.077600' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 161) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 161', 161, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.084485' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 162) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 162', 162, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.088852' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 163) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 163', 163, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.093131' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 164) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 164', 164, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.097001' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 165) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 165', 165, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 57', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.8ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 58', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.158121' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 166) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 166', 166, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.162447' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 167) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 167', 167, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.166128' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 168) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 168', 168, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.169512' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 169) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 169', 169, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.172778' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 170) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 170', 170, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.181023' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 171) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 171', 171, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.184483' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 172) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 172', 172, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.187811' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 173) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 173', 173, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.191009' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 174) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 174', 174, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.194296' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 175) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 175', 175, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (11.5ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26', 11) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.8ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (12.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (1.3ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.9ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 12  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (0.5ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (1.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.8ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.701597' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 176) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 176', 176, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.705835' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 177) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 177', 177, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.708971' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 178) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 178', 178, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.712124' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 179) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 179', 179, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.715265' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 180) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 180', 180, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 59', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 60', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:26' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.780034' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 181) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 181', 181, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.783241' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 182) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 182', 182, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.786353' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 183) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 183', 183, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.789494' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 184) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 184', 184, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.792647' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 185) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 185', 185, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.800481' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 186) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 186', 186, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.803932' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 187) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 187', 187, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.806986' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 188) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 188', 188, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.810094' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 189) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 189', 189, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:26.813084' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 190) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 190', 190, '2023-09-11 15:46:26', '2023-09-11 15:46:26')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 11  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-09-11 15:46:26', '2023-09-11 15:46:26') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:26' WHERE `fe_pages`.`id` = 12  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.8ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.6ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.230295' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 191) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 191', 191, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.234485' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 192) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 192', 192, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.237654' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 193) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 193', 193, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.240963' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 194) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 194', 194, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.244170' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 195) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 195', 195, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 61', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:27' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 62', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:27' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.306608' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 196) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 196', 196, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.309837' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 197) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 197', 197, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.312871' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 198) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 198', 198, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.316029' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 199) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 199', 199, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.319189' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 200) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 200', 200, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.326542' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 201) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 201', 201, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.329545' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 202) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 202', 202, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.332383' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 203) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 203', 203, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.337181' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 204) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 204', 204, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:27.343015' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 205) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 205', 205, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:27' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:27' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:27' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:27' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:27' WHERE `fe_pages`.`id` = 12  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::Person Create (2.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (0.4ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.9ms) COMMIT Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (1.0ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.4ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (12.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:27', '2023-09-11 15:46:27', 1) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 'relationship_23', 'fn_23', 'ln_23', 'phone_23', 'email_23@email.com', 'created', '2023-09-11 15:46:27', '2023-09-11 15:46:27', 1) Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`id` = 1  (11.6ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (5.9ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Update (0.6ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-09-11 15:46:27', '2023-09-11 15:46:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Update (0.3ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:27', '2023-09-11 15:46:27') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:27' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:28', '2023-09-11 15:46:28') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.6ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 6a20278c-e0cb-48f6-b683-e2cc4727babb) to Test(default) with arguments: #>, [1] Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.8ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.395956' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 206) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 206', 206, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.400328' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 207) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 207', 207, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.403546' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 208) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 208', 208, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.406727' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 209) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 209', 209, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.409781' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 210) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 210', 210, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 63', TRUE, '2023-09-11 15:46:28', '2023-09-11 15:46:28') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:28', '2023-09-11 15:46:28') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:28' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:28' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 64', TRUE, '2023-09-11 15:46:28', '2023-09-11 15:46:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:28' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:28', '2023-09-11 15:46:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:28' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:28' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.466231' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 211) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 211', 211, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.469803' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 212) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 212', 212, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.472937' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 213) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 213', 213, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.476007' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 214) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 214', 214, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:28.478979' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 215) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 215', 215, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:28', '2023-09-11 15:46:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 65', TRUE, '2023-09-11 15:46:28', '2023-09-11 15:46:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (9.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (8.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 66', TRUE, 'test', '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.142167' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 216) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 216', 216, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.145519' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 217) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 217', 217, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.149212' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 218) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 218', 218, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.152462' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 219) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 219', 219, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.155558' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 220) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 220', 220, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:29' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 67', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.184967' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 221) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 221', 221, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.188157' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 222) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 222', 222, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.191179' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 223) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 223', 223, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.194271' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 224) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 224', 224, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.197391' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 225) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 225', 225, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:29' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `slug` = 'test' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (8.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 68', TRUE, 'test', '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (1.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.364662' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 226) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 226', 226, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.369013' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 227) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 227', 227, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.371936' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 228) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 228', 228, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.375329' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 229) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 229', 229, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:29.378483' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 230) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 230', 230, '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:29' WHERE `fe_pages`.`id` = 1  (1.5ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 69', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:29' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (37.7ms) TRUNCATE TABLE `fe_addresses`  (11.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 70', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 71', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AttachmentField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'section', 'Label Element 72', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `attachment_file_name`, `created_at`, `updated_at`) VALUES (1, 3, 'test_file', 'test_file', '2023-09-11 15:46:29', '2023-09-11 15:46:29')  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.4ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (38.5ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 73', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 74', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (1.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 75', TRUE, '2023-09-11 15:46:29', '2023-09-11 15:46:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (43.3ms) TRUNCATE TABLE `fe_references`  (8.5ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 76', TRUE, '2023-09-11 15:46:30', '2023-09-11 15:46:30') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 77', TRUE, '2023-09-11 15:46:30', '2023-09-11 15:46:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 78', TRUE, '2023-09-11 15:46:30', '2023-09-11 15:46:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 79', TRUE, '2023-09-11 15:46:30', '2023-09-11 15:46:30') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 80', TRUE, '2023-09-11 15:46:30', '2023-09-11 15:46:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 81', TRUE, '2023-09-11 15:46:30', '2023-09-11 15:46:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (5.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"content"=>"Content", "name"=>"Name", "subject"=>"Subject"}}  (0.3ms) BEGIN Fe::EmailTemplate Create (0.4ms) INSERT INTO `fe_email_templates` (`name`, `content`, `subject`, `created_at`, `updated_at`) VALUES ('Name', 'Content', 'Subject', '2023-09-11 15:46:30', '2023-09-11 15:46:30')  (11.4ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 16ms (ActiveRecord: 12.1ms)  (1.5ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (15.1ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.9ms) TRUNCATE TABLE `fe_page_elements`  (8.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (10.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin (24.4ms) Completed 200 OK in 1128ms (Views: 1122.3ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (25.6ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (11.4ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.3ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-09-11 15:46:32', '2023-09-11 15:46:32')  (17.7ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin (1.9ms) Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (32.1ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (14.8ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-09-11 15:46:32', '2023-09-11 15:46:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:32', '2023-09-11 15:46:32')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:32', '2023-09-11 15:46:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 82', TRUE, '2023-09-11 15:46:32', '2023-09-11 15:46:32', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-09-11 15:46:32', '2023-09-11 15:46:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:32.866790' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 231) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 231', 231, '2023-09-11 15:46:32', '2023-09-11 15:46:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 231) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:32.872055' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 231) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:32', '2023-09-11 15:46:32') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:32' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (2.0ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-09-11 15:46:32', '2023-09-11 15:46:32')  (0.9ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (6.1ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 83', TRUE, '2023-09-11 15:46:33', '2023-09-11 15:46:33', 'a;b') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:33.047687' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 232) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 232', 232, '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.4ms) COMMIT  (0.4ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 232) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:33.052929' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 232) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:33', '2023-09-11 15:46:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:33' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.8ms) TRUNCATE TABLE `fe_addresses`  (6.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.6ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (9.3ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (6.4ms) TRUNCATE TABLE `fe_email_templates`  (6.4ms) TRUNCATE TABLE `fe_page_elements`  (5.7ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (5.6ms) TRUNCATE TABLE `fe_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_references`  (5.9ms) TRUNCATE TABLE `fe_users`  (6.5ms) TRUNCATE TABLE `phone_numbers`  (5.6ms) TRUNCATE TABLE `users`  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.9ms) TRUNCATE TABLE `fe_addresses`  (7.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.1ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (9.5ms) TRUNCATE TABLE `fe_conditions`  (39.6ms) TRUNCATE TABLE `fe_elements`  (11.2ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (13.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:33.480114' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 233) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 233', 233, '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.7ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', TRUE, '2023-09-11 15:46:33', '2023-09-11 15:46:33') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:33', '2023-09-11 15:46:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:33' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (7.5ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (21.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (38.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (4.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (10.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (18.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (25.7ms) Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (107.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (153.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (208.9ms) Completed 200 OK in 325ms (Views: 288.0ms | ActiveRecord: 9.9ms)  (1.0ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (28.0ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:33.975879' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 234) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 234', 234, '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:33', '2023-09-11 15:46:33')  (0.7ms) COMMIT  (2.1ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN  (0.2ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.9ms) Completed 200 OK in 24ms (Views: 13.5ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM `fe_elements`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (35.0ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (45.8ms) TRUNCATE TABLE `fe_users`  (12.9ms) TRUNCATE TABLE `phone_numbers`  (8.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:34.224063' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 235) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 235', 235, '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 84', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 85', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 86', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 87', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 88', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (7.3ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 2 WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `position` = 1 WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.9ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.4ms) Completed 200 OK in 41ms (Views: 0.8ms | ActiveRecord: 10.3ms)  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (2.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:34.490062' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 236) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 236', 236, '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 89', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 90', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 91', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 92', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 93', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Update (0.4ms) UPDATE `fe_page_elements` SET `position` = 2 WHERE `fe_page_elements`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 2) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 15:46:34.581183' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 1) AND (`fe_page_elements`.`position` > 1) AND (`fe_page_elements`.`position` <= 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 15:46:34.598159' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (42.6ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Update (0.6ms) UPDATE `fe_page_elements` SET `position` = 1 WHERE `fe_page_elements`.`id` = 3  (0.5ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (9.4ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 106ms (Views: 0.6ms | ActiveRecord: 71.7ms) Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (12.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:34.824094' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 237) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 237', 237, '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 94', TRUE, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:34', '2023-09-11 15:46:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-09-11 15:46:34', '2023-09-11 15:46:34')  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 15:46:34.863440' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:34' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (9.4ms) Completed 200 OK in 40ms (Views: 10.0ms | ActiveRecord: 8.9ms) Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.9ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:35.059535' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 238) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 238', 238, '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:35.066146' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 239) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 239', 239, '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 95', TRUE, '2023-09-11 15:46:35', '2023-09-11 15:46:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:35', '2023-09-11 15:46:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:35' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 15:46:35', '2023-09-11 15:46:35') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:35' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 15:46:35.116426' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:35' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.5ms) Completed 200 OK in 22ms (Views: 1.9ms | ActiveRecord: 8.3ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (3.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:35.269935' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 240) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 240', 240, '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 96', TRUE, '2023-09-11 15:46:35', '2023-09-11 15:46:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:35', '2023-09-11 15:46:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:35' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 15:46:35.303034' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:35' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Condition Update All (0.7ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 Fe::Condition Update All (0.2ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 Fe::TextField Destroy (0.3ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (3.1ms) Completed 200 OK in 32ms (Views: 3.9ms | ActiveRecord: 15.2ms) Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:35.466805' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 241) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 241', 241, '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:35', '2023-09-11 15:46:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 97', TRUE, '2023-09-11 15:46:35', '2023-09-11 15:46:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:35', '2023-09-11 15:46:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:35' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (63.1ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (133.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (218.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (76.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (139.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (202.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (400.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (761.6ms) Completed 200 OK in 847ms (Views: 830.0ms | ActiveRecord: 5.6ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:36.466118' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 242) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 242', 242, '2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 98', TRUE, '2023-09-11 15:46:36', '2023-09-11 15:46:36', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 99', TRUE, '2023-09-11 15:46:36', '2023-09-11 15:46:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.7ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:36', '2023-09-11 15:46:36') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:36' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:36', '2023-09-11 15:46:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:36' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (0.9ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = FALSE AND `fe_elements`.`share` = TRUE AND `fe_elements`.`style` = 'style' ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (2.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (74.7ms) Completed 200 OK in 151ms (Views: 76.2ms | ActiveRecord: 1.2ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (49.7ms) TRUNCATE TABLE `fe_addresses`  (9.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (16.0ms) TRUNCATE TABLE `fe_elements`  (9.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (9.4ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:36.861159' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 243) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 243', 243, '2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:36', '2023-09-11 15:46:36')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 100', TRUE, '2023-09-11 15:46:36', '2023-09-11 15:46:36') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:36', '2023-09-11 15:46:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:36' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (1.1ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (1.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (2.0ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (5.9ms) Completed 200 OK in 25ms (Views: 5.8ms | ActiveRecord: 2.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (30.5ms) TRUNCATE TABLE `fe_addresses`  (11.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:37.072231' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 244) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 244', 244, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 101', TRUE, '2023-09-11 15:46:37', '2023-09-11 15:46:37') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:37', '2023-09-11 15:46:37') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:37' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1) LIMIT 1  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.4ms) Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (9.4ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:37.235269' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 245) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 245', 245, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 102', TRUE, '2023-09-11 15:46:37', '2023-09-11 15:46:37') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:37', '2023-09-11 15:46:37') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:37' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.8ms) Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (5.6ms) Completed 200 OK in 21ms (Views: 5.9ms | ActiveRecord: 2.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (30.4ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:37.445030' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 246) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 246', 246, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 103', TRUE, '2023-09-11 15:46:37', '2023-09-11 15:46:37', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 103', TRUE, '2023-09-11 15:46:37', '2023-09-11 15:46:37', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 15:46:37', '2023-09-11 15:46:37') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:37' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `share` = FALSE WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.2ms) COMMIT Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (3.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.1ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (8.3ms) Completed 200 OK in 34ms (Views: 7.9ms | ActiveRecord: 10.0ms) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:37.754927' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 247) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 247', 247, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.1ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (7.8ms) Completed 200 OK in 27ms (Views: 12.1ms | ActiveRecord: 5.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.5ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (41.0ms) TRUNCATE TABLE `fe_email_templates`  (10.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (8.5ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:37.998618' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 248) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 248', 248, '2023-09-11 15:46:37', '2023-09-11 15:46:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 104', TRUE, TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 105', TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 106', TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:38', '2023-09-11 15:46:38')  (38.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (1.0ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (3.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (15.3ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (29.0ms) Completed 200 OK in 39ms (Views: 22.6ms | ActiveRecord: 9.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (15.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (15.3ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:38.292165' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 249) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 249', 249, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 107', TRUE, TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 108', TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 109', TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (7.4ms) Fe::Answer Load (1.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (1.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (2.0ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (19.6ms) Completed 200 OK in 30ms (Views: 12.7ms | ActiveRecord: 9.8ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.2ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:38.525751' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 250) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 250', 250, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 110', TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:38' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_24', 'fn_24', 'ln_24', 'phone_24', 'initial@ref.com', 'created', '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"email"=>"email@reference.com", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "relationship"=>"roommate", "title"=>"A"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.8ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 49bd649a-f14b-4c82-888c-bff97ccc01a8) to Test(default) with arguments: #>, [1] Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '08a9044b36176c9b227bf8f44e04eb6b' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = '08a9044b36176c9b227bf8f44e04eb6b' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Update (0.3ms) UPDATE `fe_applications` SET `locale` = NULL WHERE `fe_applications`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.8ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (1.8ms) Completed 200 OK in 60ms (Views: 13.7ms | ActiveRecord: 11.0ms) Fe::Application Load (0.7ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.6ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (58.0ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (13.8ms) TRUNCATE TABLE `fe_email_templates`  (14.1ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:38.833683' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 251) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 251', 251, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 111', TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:38.860513' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 252) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 252, '2023-09-11 15:46:38', '2023-09-11 15:46:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 112', TRUE, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:38' WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:38', '2023-09-11 15:46:38', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-11 15:46:38' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_25', 'fn_25', 'ln_25', 'phone_25', 'initial@ref.com', 'created', '2023-09-11 15:46:38', '2023-09-11 15:46:38', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:38' WHERE `fe_references`.`id` = 1  (11.8ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"ref answer here"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'ref answer here', '2023-09-11 15:46:38', '2023-09-11 15:46:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: d538928c-f711-47f3-b455-60e0e5f44109) to Test(default) with arguments: #>, [2]  (0.3ms) BEGIN Fe::ReferenceSheet Update (0.6ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.5ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.4ms) Completed 200 OK in 30ms (Views: 1.0ms | ActiveRecord: 8.0ms) Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.086525' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 253) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 252', 253, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 113', TRUE, '2023-09-11 15:46:39', '2023-09-11 15:46:39') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:39', '2023-09-11 15:46:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:39' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.113893' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 254) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 254, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 114', TRUE, 'answer_sheet', 'email', '2023-09-11 15:46:39', '2023-09-11 15:46:39') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-09-11 15:46:39', '2023-09-11 15:46:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:39' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 15:46:39', '2023-09-11 15:46:39', 2) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-11 15:46:39' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_26', 'fn_26', 'ln_26', 'phone_26', 'initial@ref.com', 'created', '2023-09-11 15:46:39', '2023-09-11 15:46:39', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (2.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 15:46:39' WHERE `fe_references`.`id` = 1  (18.0ms) COMMIT Fe::ReferenceSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'e12cf99d13e913024d78edbb0684a976' LIMIT 1  (0.6ms) BEGIN Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `access_key` = 'e12cf99d13e913024d78edbb0684a976', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"a"=>"e12cf99d13e913024d78edbb0684a976", "answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"other@email.com"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email` = 'other@email.com' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 2a4a53d5-f72b-4e12-9926-abb326b595b5) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 20ms (Views: 0.7ms | ActiveRecord: 6.5ms) Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.342619' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 255) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 253', 255, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.347370' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 256) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 254', 256, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.350598' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 257) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 255', 257, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.353911' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 256', 258, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.357135' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 259) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 257', 259, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:39', '2023-09-11 15:46:39', 5, 'Fe::Page') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:39', '2023-09-11 15:46:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:39' WHERE `fe_pages`.`id` = 4  (1.2ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.770455' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 260) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 258', 260, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.775113' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 261) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 259', 261, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.778708' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 262) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 260', 262, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.781850' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 263) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 261', 263, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:39.784929' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 264) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 262', 264, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the enclosed element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:39', '2023-09-11 15:46:39', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:39', '2023-09-11 15:46:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:39' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the enclosing element', TRUE, '2023-09-11 15:46:39', '2023-09-11 15:46:39', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1  (1.4ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:39', '2023-09-11 15:46:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:39' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 15:46:39', '2023-09-11 15:46:39')  (0.7ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.004718' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 265) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 263', 265, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.008985' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 266) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 264', 266, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.012419' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 267) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 265', 267, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.015768' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 268) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 266', 268, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.018816' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 269) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 267', 269, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:40', '2023-09-11 15:46:40', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (13.6ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.331275' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 270) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 268', 270, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.335584' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 271) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 269', 271, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.338990' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 272) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 270', 272, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.341972' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 273) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 271', 273, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.345427' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 274) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 272', 274, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:40', '2023-09-11 15:46:40', 5, 'Fe::Page', 'yes') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 5  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.5ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (39.0ms) TRUNCATE TABLE `phone_numbers`  (27.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.889119' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 275) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 273', 275, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.893831' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 276) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 274', 276, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.903346' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 277) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 275', 277, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.909142' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 278) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 276', 278, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:40.914011' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 279) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 277', 279, '2023-09-11 15:46:40', '2023-09-11 15:46:40')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:40', '2023-09-11 15:46:40', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved', TRUE, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved to become hidden', TRUE, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 3, 3, '2023-09-11 15:46:40', '2023-09-11 15:46:40') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::PageElement Update (0.4ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.4ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.4ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 15:46:40.997277' WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:40' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 1  (1.2ms) COMMIT Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.158249' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 280) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 278', 280, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.162577' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 281) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 279', 281, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.165833' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 282) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 280', 282, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.168897' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 283) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 281', 283, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.171664' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 284) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 282', 284, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:41', '2023-09-11 15:46:41', 5, 'Fe::Page', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:41', '2023-09-11 15:46:41') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:41' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-09-11 15:46:41', '2023-09-11 15:46:41') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-09-11 15:46:41', '2023-09-11 15:46:41') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:41' WHERE `fe_pages`.`id` = 5  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (2.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.6ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (8.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (9.1ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.414202' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 285) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 283', 285, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.418245' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 286) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 284', 286, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.421857' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 287) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 285', 287, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.425146' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 288) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 286', 288, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:41.428190' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 289) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 287', 289, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL1', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:41', '2023-09-11 15:46:41') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:41', '2023-09-11 15:46:41') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:41' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL2', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:41', '2023-09-11 15:46:41', 1) Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'LVL3 (GRID)', TRUE, '2023-09-11 15:46:41', '2023-09-11 15:46:41', 2) Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::ChoiceField', 'yes-no', 'LVL4', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:41', '2023-09-11 15:46:41') Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (1.1ms) COMMIT Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'EL (LVL5)', TRUE, '2023-09-11 15:46:41', '2023-09-11 15:46:41', 4) Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'yes', '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 4, 'yes', '2023-09-11 15:46:41', '2023-09-11 15:46:41')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 2  (1.3ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.8ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (9.4ms) TRUNCATE TABLE `fe_page_elements`  (8.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-09-11 15:46:42', '2023-09-11 15:46:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:42.040415' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 290) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 288', 290, '2023-09-11 15:46:42', '2023-09-11 15:46:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:42.044630' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 291) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 289', 291, '2023-09-11 15:46:42', '2023-09-11 15:46:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:42.047970' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 292) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 290', 292, '2023-09-11 15:46:42', '2023-09-11 15:46:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:42.051221' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 293) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 291', 293, '2023-09-11 15:46:42', '2023-09-11 15:46:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:42.054589' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 294) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 292', 294, '2023-09-11 15:46:42', '2023-09-11 15:46:42')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:42', '2023-09-11 15:46:42', 5, 'Fe::Page') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:42', '2023-09-11 15:46:42') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:42' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 1  (0.4ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1)  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `number` = 2 WHERE `fe_pages`.`id` = 2  (0.4ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 2)  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 3 WHERE `fe_pages`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 3)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 4  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:42.104003' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 4) AND (`fe_pages`.`number` >= 1) AND (`fe_pages`.`number` < 293)  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 4 WHERE `fe_pages`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 4) Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:42.110779' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 5) AND (`fe_pages`.`number` >= 4) AND (`fe_pages`.`number` < 294)  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 115', TRUE, 'a 1 2', '2023-09-11 15:46:42', '2023-09-11 15:46:42') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 116', TRUE, '2023-09-11 15:46:42', '2023-09-11 15:46:42') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 117', TRUE, TRUE, '2023-09-11 15:46:42', '2023-09-11 15:46:42', TRUE) Fe::Page Load (4.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 118', TRUE, TRUE, '2023-09-11 15:46:42', '2023-09-11 15:46:42', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (14.2ms) TRUNCATE TABLE `fe_elements`  (8.2ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (8.3ms) TRUNCATE TABLE `fe_pages`  (8.5ms) TRUNCATE TABLE `fe_people`  (8.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (51.9ms) TRUNCATE TABLE `phone_numbers`  (11.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 119', TRUE, TRUE, '2023-09-11 15:46:42', '2023-09-11 15:46:42', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (14.6ms) TRUNCATE TABLE `fe_page_elements`  (13.9ms) TRUNCATE TABLE `fe_pages`  (9.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 120', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 121', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 122', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 123', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid conditional visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 2, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (16.1ms) COMMIT Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.2ms) TRUNCATE TABLE `fe_addresses`  (11.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 124', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 125', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 126', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 127', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.9ms) COMMIT Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.8ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.9ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 128', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 129', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 130', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 131', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 132', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 133', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 134', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 4, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 135', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:43' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:43', '2023-09-11 15:46:43', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (39.9ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 136', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 137', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.4ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.075679' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 295) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 293', 295, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.079194' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 296) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 294', 296, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.082730' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 297) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 295', 297, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.085765' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 298) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 296', 298, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.088672' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 299) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 297', 299, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.099195' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 300) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 298', 300, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.102420' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 301) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 299', 301, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.105456' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 302) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 300', 302, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.108685' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 303) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 301', 303, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.111810' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 304) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 302', 304, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'match' WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (13.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 138', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 139', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.318523' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 305) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 303', 305, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.321667' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 306) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 304', 306, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.324821' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 307) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 305', 307, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.327894' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 308) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 306', 308, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.331179' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 309) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 307', 309, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.340038' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 310) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 308', 310, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.343070' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 311) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 309', 311, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.346346' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 312) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 310', 312, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.349704' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 313) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 311', 313, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.353118' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 314) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 312', 314, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.392522' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 315) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 313', 315, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.395775' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 316) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 314', 316, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.398980' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 317) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 315', 317, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.402219' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 318) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 316', 318, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.405461' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 319) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 317', 319, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 140', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 141', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.577942' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 320) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 318', 320, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.581103' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 321) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 319', 321, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.584194' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 322) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 320', 322, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.587376' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 323) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 321', 323, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.590828' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 324) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 322', 324, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.600708' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 325) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 323', 325, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.607575' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 326) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 324', 326, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.611741' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 327) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 325', 327, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.614971' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 328) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 326', 328, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.617938' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 329) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 327', 329, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (5.8ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (60.9ms) TRUNCATE TABLE `fe_addresses`  (10.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (16.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (9.0ms) TRUNCATE TABLE `fe_people`  (8.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.9ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 142', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', TRUE) Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 143', TRUE, TRUE, '2023-09-11 15:46:44', '2023-09-11 15:46:44', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.899340' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 330) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 328', 330, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.902564' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 331) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 329', 331, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.905739' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 332) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 330', 332, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.908790' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 333) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 331', 333, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.911861' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 334) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 332', 334, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.925965' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 335) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 333', 335, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.931055' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 336) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 334', 336, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.934369' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 337) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 335', 337, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.937587' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 338) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 336', 338, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.940670' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 339) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 337', 339, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 15:46:44', '2023-09-11 15:46:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:44' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:44.978234' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 340) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 338', 340, '2023-09-11 15:46:44', '2023-09-11 15:46:44')  (0.6ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:45.109762' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 341) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 339', 341, '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 144', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:45' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 145', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 146', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:45.294710' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 342) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 340', 342, '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:45.300162' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 343) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 341', 343, '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:45' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:45' WHERE `fe_pages`.`id` = 2  (1.1ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.7ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:45.469977' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 344) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 342', 344, '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 147', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:45' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 148', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 149', TRUE, TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 150', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 151', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 152', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:45.815692' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 345) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 343', 345, '2023-09-11 15:46:45', '2023-09-11 15:46:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:45' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:45' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:45' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (8.3ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 153', TRUE, '2023-09-11 15:46:45', '2023-09-11 15:46:45') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 154', TRUE, 0, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 155', TRUE, 1, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-09-11 15:46:46', '2023-09-11 15:46:46')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:46.029738' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 346) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 344', 346, '2023-09-11 15:46:46', '2023-09-11 15:46:46')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.2ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 155', TRUE, 2, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (9.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 156', TRUE, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 157', TRUE, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 158', TRUE, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-09-11 15:46:46', '2023-09-11 15:46:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:46.218463' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 347) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 345', 347, '2023-09-11 15:46:46', '2023-09-11 15:46:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:46' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:46' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 158', TRUE, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:46', '2023-09-11 15:46:46') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:46' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 159', TRUE, '2023-09-11 15:46:46', '2023-09-11 15:46:46', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (13.3ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.4ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.5ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 160', TRUE, '2023-09-11 15:46:46', '2023-09-11 15:46:46', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ChoiceField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `content_translations`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 161', '1\r\n2', TRUE, '2023-09-11 15:46:46', '2023-09-11 15:46:46', '---\nfr: \'\'\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (8.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:46', '2023-09-11 15:46:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:46', '2023-09-11 15:46:46')  (0.7ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.4ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (11.6ms) TRUNCATE TABLE `fe_references`  (8.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 162', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 163', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 164', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT Fe::Question Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.300967' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 348) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 346', 348, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.305185' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 349) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 347', 349, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.308634' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 350) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 348', 350, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.311999' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 349', 351, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.315250' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 352) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 350', 352, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 165', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:47' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.512085' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 353) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 351', 353, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.516076' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 354) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 352', 354, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.519554' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 355) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 353', 355, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.522696' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 356) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 354', 356, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.525868' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 357) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 355', 357, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 166', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:47' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.8ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (1.2ms) COMMIT Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 167', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 168', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47', 'test') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 169', TRUE, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:47.746476' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 358) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 356', 358, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:47' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:47' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:47', '2023-09-11 15:46:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:47' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.2ms) BEGIN  (0.3ms) COMMIT Fe::Answer Load (2.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'nomatch', '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.5ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 15:46:47', '2023-09-11 15:46:47')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 295.2ms  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (36.5ms) TRUNCATE TABLE `fe_addresses`  (9.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 15:46:48', '2023-09-11 15:46:48')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 15:46:48', '2023-09-11 15:46:48')  (0.5ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 4.0ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (37.2ms) TRUNCATE TABLE `fe_addresses`  (10.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 15:46:48', '2023-09-11 15:46:48')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (34.1ms) TRUNCATE TABLE `fe_addresses`  (9.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (8.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 15:46:48', '2023-09-11 15:46:48')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (6.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (1.6ms) Completed 200 OK in 30ms (Views: 22.8ms | ActiveRecord: 1.6ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (36.8ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:49.379390' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 359) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 357', 359, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.1ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Element Load (1.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb [1 times] (4.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (15.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (0.5ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.6ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGridWithTotal') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_submit_to.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (44.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 70ms (Views: 51.2ms | ActiveRecord: 7.8ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (29.2ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (8.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Redirected to http://test.host/referrer Completed 302 Found in 5ms (ActiveRecord: 2.2ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (36.6ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Rendering html template within layouts/fe/application Rendered html template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 2.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 170', TRUE, '2023-09-11 15:46:49', '2023-09-11 15:46:49') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:49.962424' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 360) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 358', 360, '2023-09-11 15:46:49', '2023-09-11 15:46:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:49', '2023-09-11 15:46:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:49' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (5.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (12.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (16.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 37ms (Views: 20.0ms | ActiveRecord: 4.4ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (26.2ms) TRUNCATE TABLE `fe_addresses`  (10.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.3ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:50.172536' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 361) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 359', 361, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 171', TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:50.184026' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 362) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 360', 362, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (3.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (5.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (5.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 7.9ms | ActiveRecord: 4.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:50.376040' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 363) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 361', 363, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 172', TRUE, TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 173', TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 174', TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.7ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.6ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (5.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (5.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 8.4ms | ActiveRecord: 6.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (9.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.4ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:50.618245' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 364) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 362', 364, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 175', TRUE, TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 176', TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 177', TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:50', '2023-09-11 15:46:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:50' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [2 times] (4.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (6.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (6.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 8.7ms | ActiveRecord: 6.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (11.3ms) TRUNCATE TABLE `fe_addresses`  (68.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (11.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (13.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:50.921961' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 365) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 363', 365, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:50.926295' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 366) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 364', 366, TRUE, '2023-09-11 15:46:50', '2023-09-11 15:46:50')  (0.6ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.5ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:51.072831' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 367) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 365', 367, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 178', TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (1.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:51' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 15:46:51' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_27', 'fn_27', 'ln_27', 'phone_27', 'email_24@email.com', 'created', '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 15:46:51' WHERE `fe_references`.`id` = 1  (11.7ms) COMMIT  (0.4ms) BEGIN Fe::EmailTemplate Create (2.3ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::EmailTemplate Create (0.5ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"email"=>"email@email.com", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "relationship"=>"rel", "title"=>"title"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '2cb569bc93eadf143be0978e063ec9b2' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = '2cb569bc93eadf143be0978e063ec9b2' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.5ms Sent mail to email@email.com (15.7ms) Date: Mon, 11 Sep 2023 11:46:51 -0400 From: info@example.com To: email@email.com Message-ID: <64ff366b28383_147c53ff30c440e8c5768d@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.4ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms Sent mail to email@email.com (1.3ms) Date: Mon, 11 Sep 2023 11:46:51 -0400 From: info@example.com To: email@email.com Message-ID: <64ff366b2b338_147c53ff30c440e8c57719@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = '2023-09-11 15:46:51' WHERE `fe_references`.`id` = 1  (11.6ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (1.0ms) Completed 200 OK in 185ms (Views: 73.3ms | ActiveRecord: 15.7ms) Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.8ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.4ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:51.621441' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 368) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 366', 368, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:51.834387' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 369) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 367', 369, '2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 15:46:51', '2023-09-11 15:46:51', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:51', '2023-09-11 15:46:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:51' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:51', '2023-09-11 15:46:51')  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (9.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:52.069711' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 370) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 368', 370, '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:52.307481' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 371) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 369', 371, '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.5ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.8ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::Answer Create (3.0ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, '', '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:52.547335' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 372) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 370', 372, '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.9ms) COMMIT Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 2', '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:52.780037' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 373) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 371', 373, '2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 15:46:52', '2023-09-11 15:46:52', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:52' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.5ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:52', '2023-09-11 15:46:52')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'choice 1', '2023-09-11 15:46:52', '2023-09-11 15:46:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (44.7ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-09-11 15:46:53', '2023-09-11 15:46:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:53.081424' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 374) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 372', 374, '2023-09-11 15:46:53', '2023-09-11 15:46:53')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 15:46:53', '2023-09-11 15:46:53', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 15:46:53', '2023-09-11 15:46:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 15:46:53', '2023-09-11 15:46:53', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 15:46:53', '2023-09-11 15:46:53', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:53', '2023-09-11 15:46:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:53' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:53', '2023-09-11 15:46:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:53' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 15:46:53', '2023-09-11 15:46:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:53' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 15:46:53', '2023-09-11 15:46:53') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:53' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:53', '2023-09-11 15:46:53')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-09-11 15:46:53', '2023-09-11 15:46:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (5.8ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-09-11 15:46:53', '2023-09-11 15:46:53')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:53.802706' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 375) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 373', 375, '2023-09-11 15:46:53', '2023-09-11 15:46:53')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb Fe::Element Load (5.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (7.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (2.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (18.2ms) Completed 200 OK in 29ms (Views: 15.0ms | ActiveRecord: 5.7ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (31.0ms) TRUNCATE TABLE `fe_addresses`  (11.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:54.496305' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 376) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 374', 376, '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 179', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:54' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 180', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:54' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:54.542420' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 377) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 375', 377, '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 181', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 3, 1, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:54' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 182', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 4, 2, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:54' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT Fe::Page Update (1.3ms) UPDATE `fe_pages` SET `all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:54.710274' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 378) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 376', 378, '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 378) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:54.716262' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 378) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (2.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (9.6ms) TRUNCATE TABLE `fe_conditions`  (40.2ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:54.881285' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 379) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 377', 379, '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 183', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:54' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 184', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 185', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 186', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:54' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:54.962414' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 380) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 378', 380, '2023-09-11 15:46:54', '2023-09-11 15:46:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 187', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 5, 1, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:54' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::TextField', 'short', 'Label Element 188', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::Section', 'section', 'Label Element 189', TRUE, '2023-09-11 15:46:54', '2023-09-11 15:46:54') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 190', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 8, 2, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:55' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (8.6ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-09-11 15:46:55', '2023-09-11 15:46:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:55.163812' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 381) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 379', 381, '2023-09-11 15:46:55', '2023-09-11 15:46:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 191', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:55' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 192', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 193', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:55' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 194', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (8.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-09-11 15:46:55', '2023-09-11 15:46:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-09-11 15:46:55', '2023-09-11 15:46:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:55.363789' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 382) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (2, 'Label Page 380', 382, '2023-09-11 15:46:55', '2023-09-11 15:46:55', '')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-09-11 15:46:55', '2023-09-11 15:46:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:55.370604' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 383) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (3, 'Label Page 381', 383, '2023-09-11 15:46:55', '2023-09-11 15:46:55', '')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 195', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.9ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:55' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 382) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:55.392755' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 382) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 383) AND (`fe_pages`.id != 2) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:55.396704' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 2) AND (`fe_pages`.`number` >= 383) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 2  (0.5ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-09-11 15:46:55', '2023-09-11 15:46:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:55.530035' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 384) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 382', 384, '2023-09-11 15:46:55', '2023-09-11 15:46:55')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 196', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:55' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 197', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 198', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:55' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 199', TRUE, '2023-09-11 15:46:55', '2023-09-11 15:46:55') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (10.2ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (9.6ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.3ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (9.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (50.3ms) TRUNCATE TABLE `fe_conditions`  (19.8ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (8.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (18.6ms) TRUNCATE TABLE `fe_addresses`  (11.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.4ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.2ms) TRUNCATE TABLE `fe_people`  (6.4ms) TRUNCATE TABLE `fe_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (6.0ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (8.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.4ms) TRUNCATE TABLE `fe_addresses`  (9.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', '2023-09-11 15:46:57', '2023-09-11 15:46:57')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:57', '2023-09-11 15:46:57')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:57', '2023-09-11 15:46:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 200', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:58', '2023-09-11 15:46:58', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.014338' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 385) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 383', 385, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 385) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.019086' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 385) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.7ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:58', '2023-09-11 15:46:58') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:58' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 201', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:58', '2023-09-11 15:46:58', '') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.195929' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 386) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 384', 386, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 386) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.7ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.201429' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 386) Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:58', '2023-09-11 15:46:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:58' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Answer Load (2.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (9.0ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 202', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:58', '2023-09-11 15:46:58', 'a; b\n') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.374397' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 387) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 385', 387, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 387) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.379130' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 387) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:58', '2023-09-11 15:46:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:58' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (8.9ms) TRUNCATE TABLE `phone_numbers`  (8.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 203', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 15:46:58', '2023-09-11 15:46:58', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.556284' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 388) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 386', 388, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 388) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.560991' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 388) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 15:46:58', '2023-09-11 15:46:58') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 15:46:58' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (2.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.7ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.727684' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 389) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 387', 389, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 15:46:58.732091' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 390) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 388', 390, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.4ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.8ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb [2 times] (0.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (5.6ms) Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (4.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin (24.0ms) Completed 200 OK in 34ms (Views: 24.3ms | ActiveRecord: 3.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (23.1ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', TRUE, '2023-09-11 15:46:58', '2023-09-11 15:46:58')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = FALSE WHERE `fe_question_sheets`.`id` = 1  (0.6ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (5.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', '2023-09-11 15:46:59', '2023-09-11 15:46:59')  (0.5ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = TRUE WHERE `fe_question_sheets`.`id` = 1  (0.8ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.5ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-09-11 15:46:59', '2023-09-11 15:46:59')  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166 - COPY', '2023-09-11 15:46:59', '2023-09-11 15:46:59')  (0.5ms) COMMIT Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 2.4ms)  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', '2023-09-11 15:46:59', '2023-09-11 15:46:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', TRUE, '2023-09-11 15:46:59', '2023-09-11 15:46:59')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = FALSE ORDER BY label Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = TRUE ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin (2.9ms) Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.8ms) TRUNCATE TABLE `fe_addresses`  (10.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483  (0.3ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:13', '2023-09-11 16:47:13')  (22.6ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 1', '2023-09-11 16:47:13', '2023-09-11 16:47:13')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.9ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:13.390706' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 1) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 1', 1, '2023-09-11 16:47:13', '2023-09-11 16:47:13')  (12.0ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 2', '2023-09-11 16:47:13', '2023-09-11 16:47:13')  (9.3ms) COMMIT  (0.4ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:13.425073' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 2) Fe::Page Create (0.6ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 2', 2, '2023-09-11 16:47:13', '2023-09-11 16:47:13')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:13', '2023-09-11 16:47:13')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 1', TRUE, '2023-09-11 16:47:13', '2023-09-11 16:47:13') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (11.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:13', '2023-09-11 16:47:13') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:13' WHERE `fe_pages`.`id` = 1  (11.4ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 16:47:13', '2023-09-11 16:47:13') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:13' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 16:47:13.764394' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:13' WHERE `fe_pages`.`id` = 1  (11.9ms) COMMIT Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (2.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (10.9ms) Completed 200 OK in 136ms (Views: 89.8ms | ActiveRecord: 21.8ms) Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.8ms) select table_name from information_schema.views where table_schema = 'fe_test'  (35.4ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 3', '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:14.067815' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 3) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 3', 3, '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 2', TRUE, '2023-09-11 16:47:14', '2023-09-11 16:47:14') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:14', '2023-09-11 16:47:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:14' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.2ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 16:47:14.099201' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:14' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Condition Update All (1.2ms) UPDATE `fe_conditions` SET `fe_conditions`.`toggle_id` = NULL WHERE `fe_conditions`.`toggle_id` = 1 Fe::Condition Update All (0.3ms) UPDATE `fe_conditions` SET `fe_conditions`.`trigger_id` = NULL WHERE `fe_conditions`.`trigger_id` = 1 Fe::TextField Destroy (0.4ms) DELETE FROM `fe_elements` WHERE `fe_elements`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.7ms) Completed 200 OK in 40ms (Views: 2.4ms | ActiveRecord: 20.0ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.7ms) TRUNCATE TABLE `fe_answers`  (7.1ms) TRUNCATE TABLE `fe_applications`  (9.5ms) TRUNCATE TABLE `fe_conditions`  (10.5ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 4', '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:14.261441' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 4) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 4', 4, '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 3', TRUE, '2023-09-11 16:47:14', '2023-09-11 16:47:14') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:14', '2023-09-11 16:47:14') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:14' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.8ms) COMMIT Processing by Fe::Admin::ElementsController#destroy as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 16:47:14.319663' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:14' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_insert.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/destroy.js.erb (1.5ms) Completed 200 OK in 22ms (Views: 2.0ms | ActiveRecord: 8.6ms) Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND `fe_page_elements`.`element_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 5', '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:14.468458' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 5) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 5', 5, '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:14', '2023-09-11 16:47:14')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 4', TRUE, '2023-09-11 16:47:14', '2023-09-11 16:47:14', TRUE) Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#copy_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 4', TRUE, '2023-09-11 16:47:14', '2023-09-11 16:47:14', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 16:47:14', '2023-09-11 16:47:14') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:14' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Update (0.8ms) UPDATE `fe_elements` SET `share` = FALSE WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (76.0ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (161.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (229.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (6.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (75.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (156.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (234.4ms) Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (95.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (534.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (916.5ms) Completed 200 OK in 1011ms (Views: 981.0ms | ActiveRecord: 11.2ms) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (36.1ms) TRUNCATE TABLE `fe_addresses`  (11.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:15', '2023-09-11 16:47:15')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (2.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 6', '2023-09-11 16:47:15', '2023-09-11 16:47:15')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (2.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:15.675855' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 6) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 6', 6, '2023-09-11 16:47:15', '2023-09-11 16:47:15')  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:15', '2023-09-11 16:47:15')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 5', TRUE, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 6', TRUE, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGrid Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 7', TRUE, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 8', TRUE, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 9', TRUE, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:15' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:15' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:15', '2023-09-11 16:47:15') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:15' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::QuestionGrid Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list"=>["3", "1", "2"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` ASC  (0.2ms) BEGIN Fe::PageElement Update (0.4ms) UPDATE `fe_page_elements` SET `position` = 2 WHERE `fe_page_elements`.`id` = 1  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 2) Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 16:47:15.826105' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 1) AND (`fe_page_elements`.`position` > 1) AND (`fe_page_elements`.`position` <= 2) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:15' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.4ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 16:47:15.843801' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,4,5,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:15' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Update (0.5ms) UPDATE `fe_page_elements` SET `position` = 1 WHERE `fe_page_elements`.`id` = 3  (0.6ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` = 1) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:15' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.3ms) Completed 200 OK in 63ms (Views: 0.8ms | ActiveRecord: 21.8ms) Fe::QuestionGrid Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_elements`.`position` FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 3 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 2 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 7', '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:16.017520' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 7) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 7', 7, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (3.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 10', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 11', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'style', 'Label Element 12', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 13', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'style', 'Label Element 14', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:16' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:16' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:16' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Processing by Fe::Admin::ElementsController#reorder as JS Parameters: {"questions_list_3"=>["5", "4"], "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`id` = 3 ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc  (0.1ms) BEGIN Fe::TextField Update (1.0ms) UPDATE `fe_elements` SET `position` = 2 WHERE `fe_elements`.`id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Update (0.5ms) UPDATE `fe_elements` SET `position` = 1 WHERE `fe_elements`.`id` = 5 Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,5,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.7ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/reorder.js.erb (0.1ms) Completed 200 OK in 36ms (Views: 0.6ms | ActiveRecord: 12.5ms)  (0.2ms) SELECT `fe_page_elements`.`position` FROM `fe_page_elements` Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 8', '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:16.276988' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 8) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 8', 8, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'style', 'Label Element 15', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 16', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:16' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:16' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#new as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::TextField Load (2.1ms) SELECT distinct(fe_elements.id), fe_elements.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_page_elements`.`element_id` = `fe_elements`.`id` INNER JOIN `fe_pages` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_question_sheets`.`archived` = FALSE AND `fe_elements`.`share` = TRUE AND `fe_elements`.`style` = 'style' ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_questions.html.erb (2.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/new.js.erb (80.4ms) Completed 200 OK in 161ms (Views: 81.9ms | ActiveRecord: 2.4ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (30.4ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (79.3ms) TRUNCATE TABLE `fe_people`  (9.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (9.0ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 9', '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:16.716182' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 9) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 9', 9, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (5.6ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (4.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 17', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:16' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Processing by Fe::Admin::ElementsController#edit as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1 Fe::Condition Load (1.2ms) SELECT `fe_conditions`.* FROM `fe_conditions` WHERE `fe_conditions`.`toggle_id` = 1 Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.4ms) Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (7.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (17.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (27.5ms) Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (5.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (51.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/edit.js.erb (64.4ms) Completed 200 OK in 93ms (Views: 64.5ms | ActiveRecord: 3.5ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.5ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 10', '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:16.985816' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 10) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 10', 10, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:16', '2023-09-11 16:47:16')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 18', TRUE, '2023-09-11 16:47:16', '2023-09-11 16:47:16') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:17' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"style"=>"style"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (6.7ms) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGrid') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/update.js.erb (16.4ms) Completed 200 OK in 39ms (Views: 16.6ms | ActiveRecord: 2.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (13.4ms) TRUNCATE TABLE `fe_addresses`  (6.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.2ms) TRUNCATE TABLE `fe_answers`  (7.0ms) TRUNCATE TABLE `fe_applications`  (9.0ms) TRUNCATE TABLE `fe_conditions`  (9.6ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (6.7ms) TRUNCATE TABLE `fe_page_elements`  (6.2ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (6.0ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (6.1ms) TRUNCATE TABLE `fe_users`  (6.7ms) TRUNCATE TABLE `phone_numbers`  (6.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 11', '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:17.184962' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 11) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 11', 11, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 19', TRUE, '2023-09-11 16:47:17', '2023-09-11 16:47:17') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:17' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Processing by Fe::Admin::ElementsController#update as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`id` = 1 ORDER BY id=1 DESC LIMIT 1  (0.1ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`slug` = 'Illegal Chars: #@$!' AND (id != 1) LIMIT 1  (0.2ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (1.1ms) Completed 200 OK in 40ms (Views: 11.3ms | ActiveRecord: 3.1ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.6ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 12', '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:17.417073' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 12) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 12', 12, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', 'Label Element 20', TRUE, '2023-09-11 16:47:17', '2023-09-11 16:47:17') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Processing by Fe::Admin::ElementsController#use_existing as JS Parameters: {"question_sheet_id"=>"1", "page_id"=>"1", "id"=>"1"} Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:17' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.4ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (0.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (3.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (3.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (6.9ms) Completed 200 OK in 22ms (Views: 7.0ms | ActiveRecord: 5.2ms)  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 13', '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:17.589640' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 13) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 13', 13, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.8ms) COMMIT  (2.3ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"slug"=>"Illegal Chars: \#@$!"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/error.js.erb (0.4ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM `fe_elements`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (27.0ms) TRUNCATE TABLE `fe_addresses`  (9.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 14', '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:17.763309' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 14) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 14', 14, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17')  (0.7ms) COMMIT  (1.9ms) SELECT COUNT(*) FROM `fe_elements` Processing by Fe::Admin::ElementsController#create as JS Parameters: {"element"=>{"style"=>"style"}, "element_type"=>"Fe::TextField", "question_sheet_id"=>"1", "page_id"=>"1"} Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'style', TRUE, '2023-09-11 16:47:17', '2023-09-11 16:47:17') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:17', '2023-09-11 16:47:17') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:17' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (0.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element_show.html.erb (0.3ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_element.html.erb [1 times] (1.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (9.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/_errors.html.erb (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields_default.html.erb (0.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_boolean_fields.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_common_fields.html.erb (0.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_text_field.html.erb (1.1ms) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_advanced_options.html.erb (2.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_prop_element.html.erb (4.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/elements/create.js.erb (21.1ms) Completed 200 OK in 44ms (Views: 20.7ms | ActiveRecord: 6.4ms)  (0.9ms) SELECT COUNT(*) FROM `fe_elements` Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY `fe_elements`.`id` DESC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (44.2ms) TRUNCATE TABLE `fe_applications`  (14.4ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (8.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (8.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (8.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 21', TRUE, 'test', '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 15', '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.014054' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 15) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 15', 15, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.017558' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 16) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 16', 16, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.020715' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 17) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 17', 17, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.023802' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 18) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 18', 18, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.026746' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 19) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 19', 19, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:19' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 22', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 16', '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.054353' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 20) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 20', 20, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.057653' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 21) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 21', 21, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.060862' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 22) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 22', 22, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.064105' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 23) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 23', 23, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.067139' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 24) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 24', 24, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:19' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `slug` = 'test' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.9ms) COMMIT  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `slug`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 23', TRUE, 'test', '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 17', '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.235399' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 25) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 25', 25, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.238703' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 26) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 26', 26, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.241984' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 27) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 27', 27, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.245184' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 28) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 28', 28, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:19.248432' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 29) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 29', 29, '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`slug` = 'test' AND (id != 1) LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:19' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 24', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:19' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`slug` = 'test' AND (id != 2) LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (39.9ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 25', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 26', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AttachmentField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::AttachmentField', 'section', 'Label Element 27', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `attachment_file_name`, `created_at`, `updated_at`) VALUES (1, 3, 'test_file', 'test_file', '2023-09-11 16:47:19', '2023-09-11 16:47:19')  (0.8ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Destroy (0.5ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (38.6ms) TRUNCATE TABLE `fe_addresses`  (10.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 28', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 29', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 30', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 31', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 32', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 33', TRUE, '2023-09-11 16:47:19', '2023-09-11 16:47:19') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 34', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 35', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 36', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (8.7ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 18', '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:20.278556' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 30) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 30', 30, '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.6ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (23.7ms) TRUNCATE TABLE `fe_pages`  (24.4ms) TRUNCATE TABLE `fe_people`  (9.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 19', '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:20.535108' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 31) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 31', 31, '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 20', '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:20.753027' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 32) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 32', 32, '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:20' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.9ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-09-11 16:47:20', '2023-09-11 16:47:20') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (1.0ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 21', '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:20.989718' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 33) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 33', 33, '2023-09-11 16:47:20', '2023-09-11 16:47:20')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 16:47:20', '2023-09-11 16:47:20', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.8ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'a text response', '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'an updated response' WHERE `fe_answers`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.3ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 22', '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:21.210393' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 34) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 34', 34, '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:21', '2023-09-11 16:47:21')  (1.1ms) COMMIT Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::Answer Create (1.1ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, '', '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.9ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) COMMIT  (1.3ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (8.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 23', '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:21.450174' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 35) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 35', 35, '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.6ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'choice 1', '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (36.9ms) TRUNCATE TABLE `fe_elements`  (10.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (8.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 24', '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:21.766800' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 36) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 36', 36, '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf1', TRUE, TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'vis1', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'conf2', TRUE, TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'vis2', TRUE, '2023-09-11 16:47:21', '2023-09-11 16:47:21', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:21' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.6ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.4ms) COMMIT Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) BEGIN Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `kind` = 'Fe::ChoiceField', `style` = 'checkbox', `content` = 'choice 1\nchoice 2' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 1', '2023-09-11 16:47:21', '2023-09-11 16:47:21')  (0.7ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'choice 2', '2023-09-11 16:47:21', '2023-09-11 16:47:21') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.7ms) SELECT COUNT(*) FROM `fe_answers` Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` ORDER BY `fe_answers`.`id` ASC LIMIT 1 OFFSET 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (8.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Processing by Fe::Admin::EmailTemplatesController#new as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/layouts/fe/_error_messages_for.html.erb (1.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/_form.html.erb (2.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/new.html.erb within layouts/fe/fe_admin (17.9ms) Completed 200 OK in 1420ms (Views: 1398.4ms | ActiveRecord: 3.7ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (49.0ms) TRUNCATE TABLE `fe_addresses`  (11.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) SELECT COUNT(*) FROM `fe_email_templates` Processing by Fe::Admin::EmailTemplatesController#create as HTML Parameters: {"email_template"=>{"content"=>"Content", "name"=>"Name", "subject"=>"Subject"}}  (0.2ms) BEGIN Fe::EmailTemplate Create (0.3ms) INSERT INTO `fe_email_templates` (`name`, `content`, `subject`, `created_at`, `updated_at`) VALUES ('Name', 'Content', 'Subject', '2023-09-11 16:47:23', '2023-09-11 16:47:23')  (0.6ms) COMMIT Redirected to http://test.host/fe/admin/email_templates Completed 302 Found in 3ms (ActiveRecord: 1.1ms)  (0.6ms) SELECT COUNT(*) FROM `fe_email_templates`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.7ms) TRUNCATE TABLE `fe_addresses`  (36.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (9.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.6ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Template', '2023-09-11 16:47:24', '2023-09-11 16:47:24')  (0.7ms) COMMIT Processing by Fe::Admin::EmailTemplatesController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin Fe::EmailTemplate Load (0.6ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` ORDER BY name Rendered /Users/andrew/Development/fe/app/views/fe/admin/email_templates/index.html.erb within layouts/fe/fe_admin (3.5ms) Completed 200 OK in 15ms (Views: 9.2ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (25.2ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.1ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (9.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.9ms) TRUNCATE TABLE `fe_addresses`  (7.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.5ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (9.1ms) TRUNCATE TABLE `phone_numbers`  (9.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 25', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.7ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 37', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:25', '2023-09-11 16:47:25', 'a; b\n') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 26', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.244339' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 37) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 37', 37, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 37) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.248998' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 37) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:25' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (2.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.5ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 27', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 38', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:25', '2023-09-11 16:47:25', 'a;b') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 28', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.425700' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 38) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 38', 38, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 38) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.430590' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 38) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:25' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'a', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.8ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 29', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 39', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:25', '2023-09-11 16:47:25', '') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 30', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.608544' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 39) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 39', 39, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 39) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.613511' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 39) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:25' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 31', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 40', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:25', '2023-09-11 16:47:25', 'a;b') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 32', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.783482' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 40) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 40', 40, '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 40) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:25.788043' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 40) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:25', '2023-09-11 16:47:25') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:25' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::Answer Create (2.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'd', '2023-09-11 16:47:25', '2023-09-11 16:47:25')  (0.4ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.2ms) TRUNCATE TABLE `fe_addresses`  (11.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (9.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.6ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.9ms) TRUNCATE TABLE `fe_conditions`  (56.8ms) TRUNCATE TABLE `fe_elements`  (8.5ms) TRUNCATE TABLE `fe_email_templates`  (8.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (8.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (15.5ms) TRUNCATE TABLE `fe_addresses`  (13.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 33', '2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:27.539139' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 41) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 41', 41, '2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.8ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.1ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.6ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (11.1ms) Completed 200 OK in 30ms (Views: 15.4ms | ActiveRecord: 5.6ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (36.0ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 34', '2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:27.742253' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 42) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 42', 42, '2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 41', TRUE, TRUE, '2023-09-11 16:47:27', '2023-09-11 16:47:27') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:27', '2023-09-11 16:47:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:27' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 42', TRUE, '2023-09-11 16:47:27', '2023-09-11 16:47:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:27', '2023-09-11 16:47:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:27' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 43', TRUE, '2023-09-11 16:47:27', '2023-09-11 16:47:27') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:27', '2023-09-11 16:47:27') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:27' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (2.8ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (12.8ms)  (0.8ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (27.6ms) Completed 200 OK in 37ms (Views: 20.9ms | ActiveRecord: 9.5ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (18.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 35', '2023-09-11 16:47:27', '2023-09-11 16:47:27')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:28.003013' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 43) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 43', 43, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 44', TRUE, TRUE, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 45', TRUE, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 46', TRUE, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT Processing by Fe::AnswerPagesController#edit as HTML Parameters: {"id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.3ms)  (0.6ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (2.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (7.9ms) Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Rendered /Users/andrew/Development/fe/app/views/fe/questions/fe/_text_field.html.erb (1.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_element.html.erb (1.6ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (30.3ms) Completed 200 OK in 40ms (Views: 21.3ms | ActiveRecord: 11.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 36', '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:28.250906' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 44) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 44', 44, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 47', TRUE, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 37', '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:28.281548' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 45) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 45, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 48', TRUE, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:28', '2023-09-11 16:47:28', 2) Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-11 16:47:28' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::ReferenceQuestion Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_1', 'fn_1', 'ln_1', 'phone_1', 'initial@ref.com', 'created', '2023-09-11 16:47:28', '2023-09-11 16:47:28', 2) Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:28' WHERE `fe_references`.`id` = 1  (20.3ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"ref answer here"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.7ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'ref answer here', '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (1.0ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: cf11da4d-8db5-4fe3-88d5-483cf869e682) to Test(default) with arguments: #>, [2]  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.6ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.5ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (1.4ms) Completed 200 OK in 48ms (Views: 12.5ms | ActiveRecord: 7.8ms) Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.6ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (15.6ms) TRUNCATE TABLE `fe_answers`  (14.0ms) TRUNCATE TABLE `fe_applications`  (14.6ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 38', '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:28.630075' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 46) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 45', 46, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 49', TRUE, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:28' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_2', 'fn_2', 'ln_2', 'phone_2', 'initial@ref.com', 'created', '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.7ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"answers"=>{"1"=>"answer here"}, "reference"=>{"1"=>{"email"=>"email@reference.com", "first_name"=>"FN", "last_name"=>"LN", "phone"=>"phone", "relationship"=>"roommate", "title"=>"A"}}, "id"=>"1", "answer_sheet_id"=>"1"} Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'answer here', '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: 7db7ce44-8d6e-43f5-8ee0-1772101b06ba) to Test(default) with arguments: #>, [1] Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b0931c65d27c37b4f279cfaf5ce608f1' LIMIT 1 Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `relationship` = 'roommate', `title` = 'A', `first_name` = 'FN', `last_name` = 'LN', `phone` = 'phone', `email` = 'email@reference.com', `access_key` = 'b0931c65d27c37b4f279cfaf5ce608f1' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Update (0.3ms) UPDATE `fe_applications` SET `locale` = NULL WHERE `fe_applications`.`id` = 1  (0.6ms) COMMIT  (0.3ms) SELECT `fe_question_sheets`.`id` FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 34ms (Views: 0.8ms | ActiveRecord: 10.3ms) Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (38.5ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (8.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 39', '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:28.872312' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 47) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 46', 47, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 50', TRUE, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 40', '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:28.906805' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 48) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Ref Page', 48, '2023-09-11 16:47:28', '2023-09-11 16:47:28')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 51', TRUE, 'answer_sheet', 'email', '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 2, 1, '2023-09-11 16:47:28', '2023-09-11 16:47:28') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:28' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:28', '2023-09-11 16:47:28', 2) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-11 16:47:28' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (3, 1, 'relationship_3', 'fn_3', 'ln_3', 'phone_3', 'initial@ref.com', 'created', '2023-09-11 16:47:28', '2023-09-11 16:47:28', 2) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:28' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ae2ab08b0b085b8569153ea91a2bf397' LIMIT 1  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `access_key` = 'ae2ab08b0b085b8569153ea91a2bf397', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Processing by Fe::AnswerPagesController#update as JS Parameters: {"a"=>"ae2ab08b0b085b8569153ea91a2bf397", "answer_sheet_type"=>"Fe::ReferenceSheet", "answers"=>{"2"=>"other@email.com"}, "id"=>"2", "answer_sheet_id"=>"1"} Fe::ReferenceSheet Load (0.3ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 2 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 2 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.8ms) UPDATE `fe_references` SET `email` = 'other@email.com' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: abefcba6-0a63-4c3e-96ca-2f0627f29902) to Test(default) with arguments: #>, [2]  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `locale` = NULL WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 2  (0.3ms) SELECT MAX(`fe_answers`.`updated_at`) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 2 Rendering /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/update.js.erb (0.3ms) Completed 200 OK in 19ms (Views: 0.7ms | ActiveRecord: 6.1ms) Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::Paragraph Create (4.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'Lorem ipsum...', '2023-09-11 16:47:29', '2023-09-11 16:47:29') Fe::Page Load (2.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (8.9ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Paragraph Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `content`, `created_at`, `updated_at`) VALUES ('Fe::Paragraph', 'paragraph', 'abc', '2023-09-11 16:47:29', '2023-09-11 16:47:29') Fe::Page Load (2.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (193.6ms) TRUNCATE TABLE `fe_answers`  (14.7ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (16.3ms) TRUNCATE TABLE `fe_question_sheets`  (14.0ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 41', '2023-09-11 16:47:29', '2023-09-11 16:47:29')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.5ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:29', '2023-09-11 16:47:29')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:29', '2023-09-11 16:47:29')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:29', '2023-09-11 16:47:29')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:29.657042' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 49) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 47', 49, '2023-09-11 16:47:29', '2023-09-11 16:47:29')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 52', TRUE, '2023-09-11 16:47:29', '2023-09-11 16:47:29') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:29' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:29', '2023-09-11 16:47:29') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:29' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:29' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceSheet Create (0.7ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_4', 'fn_4', 'ln_4', 'phone_4', 'email_1@email.com', 'created', '2023-09-11 16:47:29', '2023-09-11 16:47:29') Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (2.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 16:47:29' WHERE `fe_references`.`id` = 1  (11.8ms) COMMIT  (0.5ms) BEGIN Fe::EmailTemplate Create (2.3ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Invite', '2023-09-11 16:47:29', '2023-09-11 16:47:29')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (0.5ms) INSERT INTO `fe_email_templates` (`name`, `created_at`, `updated_at`) VALUES ('Reference Notification to Applicant', '2023-09-11 16:47:29', '2023-09-11 16:47:29')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#send_reference_invite as JS Parameters: {"reference"=>{"1"=>{"email"=>"email@email.com", "first_name"=>"first_name", "last_name"=>"last_name", "phone"=>"phone", "relationship"=>"rel", "title"=>"title"}}, "reference_id"=>"1", "id"=>"1"} Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Load (0.5ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`applicant_answer_sheet_id` = 1 AND `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND (false) Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '51d0b2d694d36471500642af7693fb2e' LIMIT 1 Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `relationship` = 'rel', `title` = 'title', `first_name` = 'first_name', `last_name` = 'last_name', `phone` = 'phone', `email` = 'email@email.com', `access_key` = '51d0b2d694d36471500642af7693fb2e' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Invite' LIMIT 1 Rendering text template Rendered text template (0.1ms) Fe::Notifier#notification: processed outbound mail in 278.0ms Sent mail to email@email.com (11.8ms) Date: Mon, 11 Sep 2023 12:47:30 -0400 From: info@example.com To: email@email.com Message-ID: <64ff44a293f7_3cea3fc384840ea45076f@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fe::EmailTemplate Load (0.5ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Reference Notification to Applicant' LIMIT 1 Rendering text template Rendered text template (0.1ms) Fe::Notifier#notification: processed outbound mail in 2.1ms Sent mail to email@email.com (1.7ms) Date: Mon, 11 Sep 2023 12:47:30 -0400 From: info@example.com To: email@email.com Message-ID: <64ff44a2b219_3cea3fc384840ea4508d3@andrews-macbook-pro.local.ccci.org.mail> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `email_sent_at` = '2023-09-11 16:47:30', `updated_at` = '2023-09-11 16:47:30' WHERE `fe_references`.`id` = 1  (17.8ms) COMMIT Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/send_reference_invite.js.erb (2.8ms) Completed 200 OK in 475ms (Views: 73.9ms | ActiveRecord: 22.4ms) Fe::ReferenceSheet Load (0.8ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (31.2ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (12.1ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.4ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 42', '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 53', TRUE, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (2.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:30.403280' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 50) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 48', 50, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:30' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.8ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (9.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (17.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (24.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.7ms) Completed 200 OK in 77ms (Views: 49.7ms | ActiveRecord: 6.0ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (38.7ms) TRUNCATE TABLE `fe_addresses`  (10.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 43', '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 44', '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:30.687581' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 51) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 49', 51, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.5ms) COMMIT  (1.5ms) BEGIN Fe::TextField Create (3.9ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 54', TRUE, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:30.708285' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 52) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 50', 52, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:30' WHERE `fe_pages`.`id` = 2  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:30' WHERE `fe_pages`.`id` = 1  (1.4ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.3ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 2 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (14.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (17.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (18.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 20.9ms | ActiveRecord: 6.2ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (14.6ms) TRUNCATE TABLE `fe_addresses`  (9.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 45', '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:30.944567' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 53) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 51', 53, '2023-09-11 16:47:30', '2023-09-11 16:47:30')  (0.6ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 55', TRUE, TRUE, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:30' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 56', TRUE, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:30' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 57', TRUE, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:30', '2023-09-11 16:47:30') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:30' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.0ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [1 times] (2.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (4.4ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (4.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 7.5ms | ActiveRecord: 4.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 46', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:31.169617' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 54) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 52', 54, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 58', TRUE, TRUE, '2023-09-11 16:47:31', '2023-09-11 16:47:31') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:31', '2023-09-11 16:47:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:31' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 59', TRUE, '2023-09-11 16:47:31', '2023-09-11 16:47:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:31', '2023-09-11 16:47:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:31' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 60', TRUE, '2023-09-11 16:47:31', '2023-09-11 16:47:31') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:31', '2023-09-11 16:47:31') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:31' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.5ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number SQL (1.1ms) SELECT `fe_elements`.`id` AS t0_r0, `fe_elements`.`question_grid_id` AS t0_r1, `fe_elements`.`kind` AS t0_r2, `fe_elements`.`style` AS t0_r3, `fe_elements`.`label` AS t0_r4, `fe_elements`.`content` AS t0_r5, `fe_elements`.`required` AS t0_r6, `fe_elements`.`slug` AS t0_r7, `fe_elements`.`position` AS t0_r8, `fe_elements`.`object_name` AS t0_r9, `fe_elements`.`attribute_name` AS t0_r10, `fe_elements`.`source` AS t0_r11, `fe_elements`.`value_xpath` AS t0_r12, `fe_elements`.`text_xpath` AS t0_r13, `fe_elements`.`cols` AS t0_r14, `fe_elements`.`is_confidential` AS t0_r15, `fe_elements`.`total_cols` AS t0_r16, `fe_elements`.`css_id` AS t0_r17, `fe_elements`.`css_class` AS t0_r18, `fe_elements`.`created_at` AS t0_r19, `fe_elements`.`updated_at` AS t0_r20, `fe_elements`.`related_question_sheet_id` AS t0_r21, `fe_elements`.`conditional_id` AS t0_r22, `fe_elements`.`tooltip` AS t0_r23, `fe_elements`.`hide_label` AS t0_r24, `fe_elements`.`hide_option_labels` AS t0_r25, `fe_elements`.`max_length` AS t0_r26, `fe_elements`.`conditional_type` AS t0_r27, `fe_elements`.`conditional_answer` AS t0_r28, `fe_elements`.`choice_field_id` AS t0_r29, `fe_elements`.`share` AS t0_r30, `fe_elements`.`label_translations` AS t0_r31, `fe_elements`.`tip_translations` AS t0_r32, `fe_elements`.`content_translations` AS t0_r33, `fe_pages`.`id` AS t1_r0, `fe_pages`.`question_sheet_id` AS t1_r1, `fe_pages`.`label` AS t1_r2, `fe_pages`.`number` AS t1_r3, `fe_pages`.`no_cache` AS t1_r4, `fe_pages`.`hidden` AS t1_r5, `fe_pages`.`created_at` AS t1_r6, `fe_pages`.`updated_at` AS t1_r7, `fe_pages`.`all_element_ids` AS t1_r8, `fe_pages`.`label_translations` AS t1_r9 FROM `fe_elements` LEFT OUTER JOIN `fe_page_elements` `page_elements_fe_elements_join` ON `page_elements_fe_elements_join`.`element_id` = `fe_elements`.`id` LEFT OUTER JOIN `fe_pages` ON `fe_pages`.`id` = `page_elements_fe_elements_join`.`page_id` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC, fe_pages.number,fe_page_elements.position Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_pages`.`id` = 1 LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1 Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_element.html.erb [2 times] (4.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_answer_sheet.html.erb (6.6ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/show.html.erb within layouts/fe/application (6.8ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 8.5ms | ActiveRecord: 6.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (11.0ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 47', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:31.393338' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 55) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 53', 55, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.5ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (2.0ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered collection of /Users/andrew/Development/fe/app/views/fe/answer_sheets/_page_link.html.erb [1 times] (2.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_pages_list.html.erb (10.3ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_title.html.erb (0.5ms)  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_page_name.html.erb (0.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_pages/_answer_page.html.erb (1.7ms)  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 AND (kind = 'Fe::QuestionGridWithTotal') ORDER BY `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/_submit_to.html.erb (0.5ms) Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/edit.html.erb within layouts/fe/application (34.9ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 56ms (Views: 38.3ms | ActiveRecord: 7.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.2ms) TRUNCATE TABLE `fe_addresses`  (10.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 48', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Redirected to http://test.host/referrer Completed 302 Found in 5ms (ActiveRecord: 2.3ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (38.9ms) TRUNCATE TABLE `fe_addresses`  (9.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 49', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.8ms) COMMIT Processing by Fe::AnswerSheetsController#edit as HTML Parameters: {"id"=>"1"} Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number Rendering html template within layouts/fe/application Rendered html template within layouts/fe/application (0.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 1.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (29.9ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 50', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:31', '2023-09-11 16:47:31')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#index as HTML Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY label Rendering /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` ORDER BY created_at Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_question_sheets`.`id` ASC LIMIT 1 Rendered /Users/andrew/Development/fe/app/views/fe/answer_sheets/index.html.erb within layouts/fe/application (3.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/applications/_logout.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 7.7ms | ActiveRecord: 0.9ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (32.5ms) TRUNCATE TABLE `fe_addresses`  (10.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 51', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:32.160946' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 56) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 54', 56, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:32.165046' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 57) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 55', 57, TRUE, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.5ms) COMMIT Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`hidden` = FALSE ORDER BY number  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.3ms) TRUNCATE TABLE `fe_answers`  (7.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 52', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.6ms) COMMIT Processing by Fe::AnswerSheetsController#create as HTML Parameters: {"question_sheet_id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:32', '2023-09-11 16:47:32') Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.4ms) COMMIT Redirected to http://test.host/fe/answer_sheets/2/edit Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (8.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.4ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_5', 'fn_5', 'ln_5', 'phone_5', 'email_2@email.com', 'created', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.5ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (46.5ms) TRUNCATE TABLE `fe_applications`  (12.7ms) TRUNCATE TABLE `fe_conditions`  (12.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (16.0ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Person Create (1.8ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.5ms) INSERT INTO `fe_references` (`applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'relationship_6', 'fn_6', 'ln_6', 'phone_6', 'email_3@email.com', 'created', '2023-09-11 16:47:32', '2023-09-11 16:47:32')  (0.7ms) COMMIT Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (10.8ms) TRUNCATE TABLE `fe_applications`  (12.6ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (9.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (46.2ms) TRUNCATE TABLE `fe_question_sheets`  (12.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 16:47:33', '2023-09-11 16:47:33', 1) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 1, 'relationship_7', 'fn_7', 'ln_7', 'phone_7', 'email_4@email.com', 'created', '2023-09-11 16:47:33', '2023-09-11 16:47:33', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`id` = 1  (12.1ms) COMMIT  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (20.9ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceSheet Create (1.7ms) INSERT INTO `fe_references` (`relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES ('relationship_8', 'fn_8', 'ln_8', 'phone_8', 'email_5@email.com', 'created', '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.8ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 53', '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.395979' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 58) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 56', 58, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.400691' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 59) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 57', 59, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.403949' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 60) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 58', 60, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.406894' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 61) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 59', 61, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.409845' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 62) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 60', 62, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:33' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_9', 'fn_9', 'ln_9', 'phone_9', 'email_6@email.com', 'created', '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (6.9ms) TRUNCATE TABLE `fe_answers`  (6.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 54', '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.602901' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 63) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 61', 63, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.607190' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 64) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 62', 64, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.610776' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 65) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 63', 65, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.614112' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 66) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 64', 66, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.617273' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 67) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 65', 67, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (32.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:33' WHERE `fe_pages`.`id` = 1  (11.2ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceSheet Create (0.6ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_10', 'fn_10', 'ln_10', 'phone_10', 'email_7@email.com', 'created', '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (2.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`id` = 1  (1.2ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.2ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (15.3ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (9.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 55', '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.873796' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 68) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 66', 68, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.878728' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 69) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 67', 69, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.882014' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 70) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 68', 70, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.885191' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 71) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 69', 71, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:33.888204' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 72) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 70', 72, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:33', '2023-09-11 16:47:33')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', FALSE, '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_11', 'fn_11', 'ln_11', 'phone_11', 'email_8@email.com', 'created', '2023-09-11 16:47:33', '2023-09-11 16:47:33') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.9ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:33' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (9.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 56', '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.054034' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 73) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 71', 73, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.058159' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 74) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 72', 74, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.061296' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 75) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 73', 75, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.064555' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 76) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 74', 76, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.067551' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 77) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 75', 77, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 61', TRUE, '2023-09-11 16:47:34', '2023-09-11 16:47:34') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:34', '2023-09-11 16:47:34', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 16:47:34', '2023-09-11 16:47:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:34' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 16:47:34', '2023-09-11 16:47:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:34' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:34' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 62', TRUE, '2023-09-11 16:47:34', '2023-09-11 16:47:34') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:34' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:34', '2023-09-11 16:47:34') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:34' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:34' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 57', '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.151079' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 78) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 76', 78, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.154787' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 79) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 77', 79, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.157936' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 80) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 78', 80, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.161198' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 81) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 79', 81, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:34.164428' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 82) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 80', 82, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.6ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 16:47:34', '2023-09-11 16:47:34')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_12', 'fn_12', 'ln_12', 'phone_12', 'email_9@email.com', 'created', '2023-09-11 16:47:34', '2023-09-11 16:47:34') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.7ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.7ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911164734000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:34' WHERE `fe_references`.`id` = 1  (1.0ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.4ms) BEGIN Fe::Answer Update (0.7ms) UPDATE `fe_answers` SET `value` = 'yes', `updated_at` = '2023-09-11 16:47:35' WHERE `fe_answers`.`id` = 1  (3.2ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (38.9ms) TRUNCATE TABLE `fe_question_sheets`  (14.2ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 58', '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.407898' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 83) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 81', 83, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.412351' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 84) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 82', 84, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.415619' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 85) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 83', 85, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.418655' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 86) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 84', 86, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.421684' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 87) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 85', 87, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 63', TRUE, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:35', '2023-09-11 16:47:35', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:35' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:35' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 64', TRUE, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:35' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 59', '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.515633' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 88) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 86', 88, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.518907' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 89) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 87', 89, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.522132' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 90) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 88', 90, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.525288' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 91) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 89', 91, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.528460' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 92) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 90', 92, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_13', 'fn_13', 'ln_13', 'phone_13', 'email_10@email.com', 'created', '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.4ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`id` = 1  (8.2ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `visible` = FALSE, `visibility_cache_key` = 'something' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911164735000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 60', '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.719046' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 93) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 91', 93, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.724285' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 94) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 92', 94, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.727814' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 95) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 93', 95, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.730940' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 96) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 94', 96, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.734039' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 97) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 95', 97, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 65', TRUE, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:35', '2023-09-11 16:47:35', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:35' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:35' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 66', TRUE, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:35' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 61', '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.825771' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 98) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 96', 98, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.828992' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 99) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 97', 99, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.832190' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 100) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 98', 100, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.835351' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 101) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 99', 101, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:35.838375' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 102) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 100', 102, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.6ms) COMMIT Fe::Answer Load (1.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 16:47:35', '2023-09-11 16:47:35')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_14', 'fn_14', 'ln_14', 'phone_14', 'email_11@email.com', 'created', '2023-09-11 16:47:35', '2023-09-11 16:47:35') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911164735000000', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:35' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (6.2ms) TRUNCATE TABLE `fe_email_templates`  (6.9ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 62', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.010772' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 103) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 101', 103, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.015468' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 104) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 102', 104, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.018784' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 105) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 103', 105, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.022055' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 106) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 104', 106, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.025523' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 107) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 105', 107, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 67', TRUE, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:36', '2023-09-11 16:47:36', 1, 'Fe::Element', 'yes') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:36' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:36' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 68', TRUE, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:36' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 63', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.111764' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 108) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 106', 108, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.115145' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 109) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 107', 109, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.118356' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 110) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 108', 110, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.121575' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 111) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 109', 111, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.124758' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 112) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 110', 112, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_15', 'fn_15', 'ln_15', 'phone_15', 'email_12@email.com', 'created', '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.6ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `visible` = FALSE WHERE `fe_references`.`id` = 1  (0.1ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'no', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = 'fe/answers/1-20230911164736000000', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`id` = 1 Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (13.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 64', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 65', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.316188' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 113) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 111', 113, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 113) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.321782' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 113) Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 69', TRUE, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:36' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:36', '2023-09-11 16:47:36', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 15:47:36', 'relationship_16', 'fn_16', 'ln_16', 'phone_16', 'email_13@email.com', 'started', '2023-09-11 16:47:36', '2023-09-11 16:47:36', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`id` = 1  (16.0ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (1.8ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.8ms) COMMIT Fe::ReferenceSheet Update (1.6ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (9.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 66', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 67', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.546042' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 114) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 112', 114, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 114) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.552339' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 114) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 70', TRUE, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:36' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:36', '2023-09-11 16:47:36', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 15:47:36', 'relationship_17', 'fn_17', 'ln_17', 'phone_17', 'email_14@email.com', 'started', '2023-09-11 16:47:36', '2023-09-11 16:47:36', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '2f42793f7070a632163bbb5c54c0b4e5' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = '2f42793f7070a632163bbb5c54c0b4e5', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.5ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (6.3ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 68', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 69', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.746843' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 115) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 113', 115, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 115) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.752909' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 115) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 71', TRUE, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:36', '2023-09-11 16:47:36') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:36' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:36', '2023-09-11 16:47:36', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 15:47:36', 'relationship_18', 'fn_18', 'ln_18', 'phone_18', 'email_15@email.com', 'started', '2023-09-11 16:47:36', '2023-09-11 16:47:36', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:36' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.0ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.8ms) COMMIT Fe::ReferenceSheet Update (0.2ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'da8c3fe094a65e923a3541125a11e572' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `status` = 'created', `access_key` = 'da8c3fe094a65e923a3541125a11e572', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (51.4ms) TRUNCATE TABLE `fe_email_templates`  (10.4ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 70', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 71', '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.992805' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 116) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 114', 116, '2023-09-11 16:47:36', '2023-09-11 16:47:36')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 116) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:36.998419' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 116) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 72', TRUE, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:37' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:37', '2023-09-11 16:47:37', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.2ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 15:47:37', 'relationship_19', 'fn_19', 'ln_19', 'phone_19', 'email_16@email.com', 'started', '2023-09-11 16:47:37', '2023-09-11 16:47:37', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Answer Load (2.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`id` = 1  (11.6ms) COMMIT  (0.4ms) BEGIN Fe::Answer Create (0.6ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::EmailTemplate Create (2.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.8ms) COMMIT Fe::ReferenceSheet Update (1.0ms) UPDATE `fe_references` SET `status` = 'completed' WHERE `fe_references`.`id` = 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.5ms) UPDATE `fe_references` SET `email` = 'a@b.com', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.8ms) SELECT COUNT(*) FROM `fe_answers`  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 72', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 73', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.220272' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 117) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 115', 117, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 117) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.226585' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 117) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 73', TRUE, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:37' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:37', '2023-09-11 16:47:37', 1) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `email_sent_at`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (2, 1, '2023-09-11 15:47:37', 'relationship_20', 'fn_20', 'ln_20', 'phone_20', 'email_17@email.com', 'started', '2023-09-11 16:47:37', '2023-09-11 16:47:37', 1) Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'test', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Reference Deleted', 'reference deleted', TRUE, 'Reference Deleted', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT Fe::ReferenceSheet Update (0.7ms) UPDATE `fe_references` SET `status` = 'created' WHERE `fe_references`.`id` = 1  (0.1ms) BEGIN  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 1 AND `fe_answers`.`question_id` = 1 Fe::Answer Destroy (0.3ms) DELETE FROM `fe_answers` WHERE `fe_answers`.`id` = 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ac8675480f69242ebbc7cc409245aebd' LIMIT 1 Fe::ReferenceSheet Update (0.3ms) UPDATE `fe_references` SET `email_sent_at` = NULL, `email` = 'a@b.com', `access_key` = 'ac8675480f69242ebbc7cc409245aebd', `visible` = FALSE, `visibility_cache_key` = '' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_answers`  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (75.0ms) TRUNCATE TABLE `fe_users`  (13.8ms) TRUNCATE TABLE `phone_numbers`  (9.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 74', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.503655' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 118) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 116', 118, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.507821' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 119) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 117', 119, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.511017' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 120) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 118', 120, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.514368' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 121) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 119', 121, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.517554' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 122) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 120', 122, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:37' WHERE `fe_pages`.`id` = 4  (3.5ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 16:47:37', '2023-09-11 16:47:37', 1) Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (3.1ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:37' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 3, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2,1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:37' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_21', 'fn_21', 'ln_21', 'phone_21', 'email_18@email.com', 'created', '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`id` = 1  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2, 1, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC, id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.9ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 75', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.809033' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 123) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 121', 123, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.813492' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 124) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 122', 124, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.817174' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 125) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 123', 125, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.820703' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 126) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 124', 126, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:37.823641' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 127) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 125', 127, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:37' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 16:47:37', '2023-09-11 16:47:37', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:37' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_22', 'fn_22', 'ln_22', 'phone_22', 'email_19@email.com', 'created', '2023-09-11 16:47:37', '2023-09-11 16:47:37') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.8ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = TRUE, `fe_references`.`updated_at` = '2023-09-11 16:47:37' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 16:47:37', '2023-09-11 16:47:37')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 76', '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.0ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.061893' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 128) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 126', 128, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.066039' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 129) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 127', 129, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.069620' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 130) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 128', 130, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.072963' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 131) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 129', 131, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.075955' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 132) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 130', 132, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:38' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:38' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_23', 'fn_23', 'ln_23', 'phone_23', 'email_20@email.com', 'created', '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (2.0ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (1.0ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`id` = 1  (12.0ms) COMMIT Fe::Answer Load (0.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (1.0ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (8.4ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 77', '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.326217' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 133) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 131', 133, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.331085' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 134) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 132', 134, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.334721' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 135) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 133', 135, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.338017' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 136) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 134', 136, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:38.341059' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 137) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 135', 137, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the reference required?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:38' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Reference question here', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.9ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:38' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (2, 1, 'relationship_24', 'fn_24', 'ln_24', 'phone_24', 'email_21@email.com', 'created', '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.9ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`id` = 1  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (10.0ms) TRUNCATE TABLE `fe_email_templates`  (10.7ms) TRUNCATE TABLE `fe_page_elements`  (8.3ms) TRUNCATE TABLE `fe_pages`  (8.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 74', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.9ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_25', 'fn_25', 'ln_25', 'phone_25', 'email_22@email.com', 'created', '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`id` = 1  (11.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 75', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (2.2ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 76', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ReferenceQuestion') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Create (0.3ms) INSERT INTO `fe_references` (`question_id`, `applicant_answer_sheet_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'relationship_26', 'fn_26', 'ln_26', 'phone_26', 'email_23@email.com', 'created', '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:38' WHERE `fe_references`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 77', TRUE, '2023-09-11 16:47:38', '2023-09-11 16:47:38') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'some text response', '2023-09-11 16:47:38', '2023-09-11 16:47:38')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1 Fe::ReferenceSheet Exists (1.6ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'f05f72b37014f69e252c3bddbffff714' LIMIT 1 Fe::ReferenceSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '530c7d6251a5bdf9a59b2663f320b08f' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'c813d1c2872cc017d35d1b514d086f38' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '3a1167b6a4d0a5090dc8be608f4e1b20' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '259dbe11b5b314b28757f8a2d9a522a7' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'ca7fdf108b219c640896779f2278b08a' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '144d1f02662f7dbaee90a8347a62fccc' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '0a3b4770ff8126ad828adcda9fe8f790' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = 'b106a3637173072699cf8805b7f47be4' LIMIT 1 Fe::ReferenceSheet Exists (0.2ms) SELECT 1 AS one FROM `fe_references` WHERE `fe_references`.`access_key` = '1df36f6dc730d046347d94552ea7e86c' LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 78', '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 78', TRUE, '2023-09-11 16:47:39', '2023-09-11 16:47:39', 'a;b') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 79', '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:39.091600' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 138) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 136', 138, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 138) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:39.096252' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 138) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:39', '2023-09-11 16:47:39') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:39' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'b', '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.6ms) COMMIT Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 80', '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (2.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'drop-down', 'Label Element 79', TRUE, '2023-09-11 16:47:39', '2023-09-11 16:47:39', 'a;b') Fe::Page Load (2.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 81', '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.3ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:39.265550' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 139) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 137', 139, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 139) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:39.270382' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 139) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:39', '2023-09-11 16:47:39') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:39' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Answer Create (2.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'c', '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.9ms) COMMIT Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (12.5ms) TRUNCATE TABLE `fe_elements`  (7.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (11.8ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (28.5ms) TRUNCATE TABLE `fe_conditions`  (40.9ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (13.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 82', '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:39.988097' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 140) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 138', 140, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:39.992960' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 141) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 139', 141, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:39.996890' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 142) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 140', 142, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:40.000149' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 143) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 141', 143, '2023-09-11 16:47:39', '2023-09-11 16:47:39')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:40.003345' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 144) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 142', 144, '2023-09-11 16:47:40', '2023-09-11 16:47:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will show the next element if the answer is yes', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:40', '2023-09-11 16:47:40', 'Fe::Element', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:40' WHERE `fe_pages`.`id` = 4  (1.3ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that is made visible by the previous element', TRUE, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:40' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT Fe::ChoiceField Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:40', '2023-09-11 16:47:40')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:40', '2023-09-11 16:47:40')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (2.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.4ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 16:47:40', '2023-09-11 16:47:40')  (11.5ms) COMMIT Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'yes' WHERE `fe_answers`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) ORDER BY id=1 DESC, id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.3ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (12.6ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (8.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 83', '2023-09-11 16:47:40', '2023-09-11 16:47:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:40.899507' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 145) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 143', 145, '2023-09-11 16:47:40', '2023-09-11 16:47:40')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 80', TRUE, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:40' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 81', TRUE, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 82', TRUE, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 16:47:40', '2023-09-11 16:47:40') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:40' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.4ms) BEGIN Fe::Section Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 83', TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.2ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.6ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 84', '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:41.154736' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 146) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 144', 146, '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.6ms) COMMIT Fe::Element Load (2.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (9.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 85', '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:41.293451' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 147) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (1, 'Label Page 145', 147, '2023-09-11 16:47:41', '2023-09-11 16:47:41', '2,1')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 84', TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 85', TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (5.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 86', '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:41.440592' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 148) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 146', 148, '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.5ms) COMMIT Fe::Element Load (2.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (1.0ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 87', '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:41.581435' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 149) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 147', 149, '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::QuestionGridWithTotal Create (3.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGridWithTotal', 'grid', 'Label Element 86', TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-09-11 16:47:41.630438' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 1) Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:41' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 87', TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 88', TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Update All (0.3ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` + 1), `updated_at` = '2023-09-11 16:47:41.673335' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` >= 2) Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:41' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 89', TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (8.0ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 88', '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:41.845822' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 150) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `hidden`, `created_at`, `updated_at`) VALUES (1, 'Label Page 148', 150, TRUE, '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.5ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (9.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (8.8ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 89', '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 90', '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:41.986273' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 149', 151, '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:41.990487' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 151) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 149', 151, '2023-09-11 16:47:41', '2023-09-11 16:47:41')  (0.5ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 2  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 91', '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:42.127123' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 152) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 150', 152, '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 90', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 91', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42', 1, 'Fe::Element', 'asdf') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 1, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:42' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:42' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGridWithTotal Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::QuestionGridWithTotal', 'grid', 'Label Element 92', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::TextField', 'short', 'Label Element 93', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.7ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'asdf', '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.8ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1,3,4' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.4ms) UPDATE `fe_answers` SET `value` = 'something else' WHERE `fe_answers`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 3, 4) ORDER BY id=2 DESC, id=1 DESC, id=3 DESC, id=4 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 92', '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:42.431321' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 153) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 151', 153, '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.6ms) COMMIT Fe::Element Load (3.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (8.1ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 93', '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:42.572991' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 154) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 152', 154, '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 94', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:42' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 LIMIT 1 Fe::PageElement Destroy (0.3ms) DELETE FROM `fe_page_elements` WHERE `fe_page_elements`.`id` = 1 Fe::PageElement Update All (0.2ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 16:47:42.601215' WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` > 1) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:42' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 94', '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:42.745392' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 155) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 153', 155, '2023-09-11 16:47:42', '2023-09-11 16:47:42')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 95', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (1.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:42' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 96', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 97', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:42' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 98', TRUE, '2023-09-11 16:47:42', '2023-09-11 16:47:42') Fe::QuestionGridWithTotal Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (20.0ms) COMMIT Fe::Page Update (2.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (12.1ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (16.8ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 95', '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.011895' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 156) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 154', 156, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 99', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:43' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (6.6ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (10.6ms) TRUNCATE TABLE `fe_answers`  (10.4ms) TRUNCATE TABLE `fe_applications`  (8.9ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.4ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 96', '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.168951' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 157) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 155', 157, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 100', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:43' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::Section Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 101', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.7ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 97', '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.341683' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 158) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 156', 158, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 102', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:43' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 103', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 104', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 98', '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.527581' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 159) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 157', 159, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::Section', 'section', 'Label Element 105', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:43' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` = 1 AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.3ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (71.9ms) TRUNCATE TABLE `users`  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 99', '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.7ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.758265' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 160) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 158', 160, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionPagesController#show as JS Parameters: {"question_sheet_id"=>"1", "id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND `fe_pages`.`id` = 1 ORDER BY number LIMIT 1 Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb Fe::Element Load (3.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (4.7ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (2.2ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/show.js.erb (14.8ms) Completed 200 OK in 25ms (Views: 12.5ms | ActiveRecord: 3.7ms)  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (37.6ms) TRUNCATE TABLE `fe_addresses`  (11.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (12.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 100', '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.957876' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 161) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 159', 161, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.962972' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 162) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 160', 162, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.966666' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 163) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 161', 163, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.970622' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 164) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 162', 164, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:43.974095' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 165) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 163', 165, '2023-09-11 16:47:43', '2023-09-11 16:47:43')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 106', TRUE, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:43', '2023-09-11 16:47:43') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:43' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:43' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 107', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 101', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.031997' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 166) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 164', 166, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.035329' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 167) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 165', 167, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.038328' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 168) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 166', 168, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.041632' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 169) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 167', 169, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.044777' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 170) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 168', 170, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.7ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.1ms) TRUNCATE TABLE `fe_page_elements`  (8.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 102', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.176834' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 171) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 169', 171, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.180929' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 172) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 170', 172, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.184557' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 173) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 171', 173, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.187875' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 174) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 172', 174, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.191018' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 175) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 173', 175, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 108', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 109', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 103', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.255016' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 176) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 174', 176, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.258268' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 177) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 175', 177, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.261357' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 178) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 176', 178, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.266332' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 179) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 177', 179, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.269662' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 180) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 178', 180, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 104', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.403442' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 181) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 179', 181, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.407849' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 182) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 180', 182, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.411130' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 183) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 181', 183, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.414215' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 184) Fe::Page Create (0.7ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 182', 184, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.417914' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 185) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 183', 185, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 110', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 111', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 105', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.479403' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 186) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 184', 186, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.482628' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 187) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 185', 187, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.485896' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 188) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 186', 188, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.489048' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 189) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 187', 189, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.492088' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 190) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 188', 190, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (10.7ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 106', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.627029' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 191) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 189', 191, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.631331' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 192) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 190', 192, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.634722' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 193) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 191', 193, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.638186' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 194) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 192', 194, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.641241' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 195) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 193', 195, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 112', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 113', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 107', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.697950' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 196) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 194', 196, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.701073' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 197) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 195', 197, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.704364' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 198) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 196', 198, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.707505' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 199) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 197', 199, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.710396' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 200) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 198', 200, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 108', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.845330' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 201) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 199', 201, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.849658' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 202) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 200', 202, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.853119' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 203) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 201', 203, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.856287' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 204) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 202', 204, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.859720' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 205) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 203', 205, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 114', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (1.2ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 115', TRUE, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:44' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:44' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::Application Create (2.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 109', '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.930761' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 206) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 204', 206, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.934062' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 207) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 205', 207, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.936959' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 208) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 206', 208, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.941336' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 209) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 207', 209, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:44.947542' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 210) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 208', 210, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.4ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:44', '2023-09-11 16:47:44')  (0.6ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.4ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (31.3ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (8.5ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 110', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.122763' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 211) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 209', 211, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.127322' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 212) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 210', 212, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.130691' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 213) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 211', 213, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.133966' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 214) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 212', 214, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.137066' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 215) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 213', 215, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 116', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 117', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 111', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.192684' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 216) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 214', 216, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.195820' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 217) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 215', 217, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.199325' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 218) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 216', 218, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.202663' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 219) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 217', 219, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.205977' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 220) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 218', 220, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.3ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2)  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 118', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (14.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.7ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.6ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.3ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' ORDER BY id=1 DESC, id=2 DESC, id=3 DESC  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number  (0.2ms) SELECT `fe_elements`.`id` FROM `fe_elements` WHERE (1 = 0) AND `fe_elements`.`kind` = 'Fe::ReferenceQuestion' Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.9ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (12.4ms) TRUNCATE TABLE `fe_conditions`  (12.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 112', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.435123' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 221) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 219', 221, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.439465' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 222) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 220', 222, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.442883' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 223) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 221', 223, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.446103' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 224) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 222', 224, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.449377' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 225) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 223', 225, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 119', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 120', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:45' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 113', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.511867' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 226) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 224', 226, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.515491' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 227) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 225', 227, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.518840' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 228) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 226', 228, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.522163' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 229) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 227', 229, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (4.3ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.529806' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 230) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 228', 230, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 114', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.537936' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 231) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 229', 231, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.541263' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 232) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 230', 232, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.544582' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 233) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 231', 233, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.547541' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 234) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 232', 234, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.551041' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 235) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 233', 235, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 11  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-09-11 16:47:45', '2023-09-11 16:47:45') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:45' WHERE `fe_pages`.`id` = 12  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (1.2ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.4ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (1.0ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.3ms) BEGIN Fe::Answer Create (0.5ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (1.4ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.5ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.7ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (11.4ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.3ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (5.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 115', '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.963463' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 236) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 234', 236, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.968992' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 237) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 235', 237, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.973867' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 238) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 236', 238, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.977989' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 239) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 237', 239, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (14.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:45.982329' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 240) Fe::Page Create (2.9ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 238', 240, '2023-09-11 16:47:45', '2023-09-11 16:47:45')  (0.7ms) COMMIT Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (1.1ms) BEGIN Fe::ReferenceQuestion Create (7.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 121', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (3.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (3.9ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.5ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (1.9ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 1  (2.7ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.3ms) BEGIN Fe::ReferenceQuestion Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 122', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.0ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 116', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.121434' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 241) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 239', 241, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.124825' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 242) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 240', 242, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.128026' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 243) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 241', 243, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.131145' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 244) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 242', 244, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.134226' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 245) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 243', 245, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 117', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.141883' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 246) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 244', 246, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.145146' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 247) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 245', 247, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.148291' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 248) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 246', 248, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.151272' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 249) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 247', 249, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.154296' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 250) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 248', 250, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.5ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 12  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.3ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::Person Update (0.8ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (1.0ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (3,11,13,14,15,8,9) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (10.8ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 118', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.546434' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 251) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 249', 251, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.550675' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 252) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 250', 252, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.554041' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 253) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 251', 253, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.557628' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 254) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 252', 254, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.560791' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 255) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 253', 255, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 123', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (2.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 1  (1.1ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 124', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:46' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 119', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.624783' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 256) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 254', 256, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.633414' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 257) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 255', 257, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.637350' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 258) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 256', 258, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.640487' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 259) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 257', 259, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.643514' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 260) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 258', 260, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 120', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.651652' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 261) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 259', 261, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.654647' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 262) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 260', 262, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.657823' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 263) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 261', 263, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.661102' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 264) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 262', 264, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:46.664452' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 265) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 263', 265, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number LIMIT 1 OFFSET 1  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno lvl1 hidden-gridparent', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'hidden grid', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46', 3) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden required2', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (4, 'Fe::TextField', 'short', 'lvl2 hidden optional', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 optional', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `object_name`, `attribute_name`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required', TRUE, 'applicant', 'first_name', '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'lvl1 required2', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'yesno2 lvl1 visible-gridparent2', 'Choice One\r\nChoice Two\r\nChoice Three', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'visible grid', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46', 11) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.2ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 13 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible required2', TRUE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (12, 'Fe::TextField', 'short', 'lvl2 visible optional', FALSE, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 12 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 3, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 11, 2, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 8, 3, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 11 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (11, 9, 4, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 11 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 11 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 11 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 12 ORDER BY position asc, id asc Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4,5,6,7,11,12,13,14,15,8,9' WHERE `fe_pages`.`id` = 11 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 12 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (12, 10, 1, '2023-09-11 16:47:46', '2023-09-11 16:47:46') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 12 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 12 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '10' WHERE `fe_pages`.`id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 10 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:46' WHERE `fe_pages`.`id` = 12  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Person Create (2.1ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (0.5ms) INSERT INTO `fe_applications` (`applicant_id`, `created_at`, `updated_at`) VALUES (1, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT Fe::Answer Load (1.9ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2  (0.2ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 3, 'no', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 11, 'yes', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 6 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 6, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 7 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 7, 'this answer is not counted, yesno parent is no so this is hidden', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 8 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 8, 'this answer is counted when optional included', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::Person Update (0.3ms) UPDATE `fe_people` SET `first_name` = 'this answer is counted' WHERE `fe_people`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 14 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 14, 'this answer is counted', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 14 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 15 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 15, 'this answer is counted when optional included', '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 15 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 12 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 11  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 3, '2023-09-11 16:47:46', '2023-09-11 16:47:46')  (0.7ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 2 LIMIT 1 Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 13 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 13 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 14 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 14 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 15 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '' WHERE `fe_pages`.`id` = 15 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND (kind NOT IN('Fe::Paragraph', 'Fe::Section', 'Fe::QuestionGrid', 'Fe::QuestionGridWithTotal')) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC, id=10 DESC Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 11 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9) ORDER BY id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=11 DESC, id=12 DESC, id=13 DESC, id=14 DESC, id=15 DESC, id=8 DESC, id=9 DESC Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 3 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 4 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 11 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 11 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 11 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 12 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 13 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 14 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 15 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 8 LIMIT 1 Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 3 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 ORDER BY number Fe::Element Exists (0.8ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 12 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 10 ORDER BY id=10 DESC  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` INNER JOIN `fe_question_sheets` ON `fe_question_sheets`.`id` = `fe_pages`.`question_sheet_id` WHERE `fe_pages`.`question_sheet_id` = 3  (0.5ms) SELECT distinct(question_id) FROM `fe_answers` WHERE `fe_answers`.`answer_sheet_id` = 2 AND `fe_answers`.`question_id` IN (3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 8, 9, 10) AND ((question_id IN (13,14,9,10) AND value IS NOT NULL) AND (value != '')) Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 13 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '') Fe::Person Load (0.2ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 10 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.1ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (6.8ms) TRUNCATE TABLE `phone_numbers`  (7.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.7ms) COMMIT [ActiveJob] Enqueued Fe::UpdateReferenceSheetVisibilityJob (Job ID: f606b861-7e8d-4ca6-89d9-649b6e3391ee) to Test(default) with arguments: #>, [1] Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.5ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 121', '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.209273' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 266) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 264', 266, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.213724' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 267) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 265', 267, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.216969' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 268) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 266', 268, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.220195' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 269) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 267', 269, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.223550' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 270) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 268', 270, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 125', TRUE, '2023-09-11 16:47:47', '2023-09-11 16:47:47') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:47', '2023-09-11 16:47:47') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:47' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number LIMIT 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 126', TRUE, '2023-09-11 16:47:47', '2023-09-11 16:47:47') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ReferenceSheet Update All (0.4ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:47', '2023-09-11 16:47:47') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 2 AND `fe_references`.`status` = 'created' Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:47' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 122', '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.287728' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 271) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 269', 271, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.290781' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 272) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 270', 272, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.294123' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 273) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 271', 273, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.297262' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 274) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 272', 274, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:47.300307' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 275) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 273', 275, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 127', TRUE, '2023-09-11 16:47:47', '2023-09-11 16:47:47') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 123', '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`, `related_question_sheet_id`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:47', '2023-09-11 16:47:47', 1) Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 1, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceSheet Create (0.5ms) INSERT INTO `fe_references` (`question_id`, `relationship`, `first_name`, `last_name`, `phone`, `email`, `status`, `created_at`, `updated_at`, `question_sheet_id`) VALUES (1, 'relationship_27', 'fn_27', 'ln_27', 'phone_27', 'email_24@email.com', 'created', '2023-09-11 16:47:47', '2023-09-11 16:47:47', 1) Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Answer Load (1.8ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE 1=0 AND `fe_answers`.`answer_sheet_id` IS NULL Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`visibility_cache_key` = '', `fe_references`.`visible` = FALSE, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`id` = 1  (16.4ms) COMMIT  (0.4ms) BEGIN Fe::QuestionSheet Create (0.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 124', '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Update (0.7ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.5ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 2, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT Fe::ReferenceSheet Load (0.4ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::ReferenceSheet Update (0.4ms) UPDATE `fe_references` SET `status` = 'started' WHERE `fe_references`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 125', '2023-09-11 16:47:47', '2023-09-11 16:47:47')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Update (0.4ms) UPDATE `fe_elements` SET `related_question_sheet_id` = 3 WHERE `fe_elements`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = 3, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.7ms) COMMIT Fe::ReferenceSheet Load (0.2ms) SELECT `fe_references`.* FROM `fe_references` WHERE `fe_references`.`id` = 1 LIMIT 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (8.7ms) TRUNCATE TABLE `fe_users`  (8.6ms) TRUNCATE TABLE `phone_numbers`  (7.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:47', '2023-09-11 16:47:47') Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'peer', '2023-09-11 16:47:47', '2023-09-11 16:47:47') Fe::Page Load (2.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:47' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (8.1ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 126', '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.179665' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 276) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 274', 276, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.184090' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 277) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 275', 277, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.187522' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 278) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 276', 278, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.190647' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 279) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 277', 279, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.193894' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 280) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 278', 280, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 4  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be moved to become hidden', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 3, 3, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 4  (0.5ms) COMMIT Fe::TextField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::TextField') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 AND `fe_page_elements`.`page_id` = 4 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 2 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.1ms) BEGIN Fe::PageElement Update (0.3ms) UPDATE `fe_page_elements` SET `position` = 3 WHERE `fe_page_elements`.`id` = 2  (0.3ms) SELECT COUNT(*) FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` = 3) Fe::PageElement Update All (0.4ms) UPDATE `fe_page_elements` SET `position` = (`fe_page_elements`.`position` - 1), `updated_at` = '2023-09-11 16:47:48.274933' WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.id != 2) AND (`fe_page_elements`.`position` > 2) AND (`fe_page_elements`.`position` <= 3) Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`element_id` = 3 ORDER BY `fe_page_elements`.`id` ASC LIMIT 1  (0.2ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,3,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 1  (0.5ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (38.0ms) TRUNCATE TABLE `fe_answers`  (14.7ms) TRUNCATE TABLE `fe_applications`  (13.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 127', '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.472364' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 281) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 279', 281, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.476894' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 282) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 280', 282, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.480327' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 283) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 281', 283, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.483404' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 284) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 282', 284, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.486759' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 285) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 283', 285, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48', 5, 'Fe::Page', 'yes') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 5  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.5ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 1  (1.3ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.7ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (7.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 128', '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.718899' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 286) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 284', 286, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.723350' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 287) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 285', 287, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.726777' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 288) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 286', 288, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.730354' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 289) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 287', 289, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.733834' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 290) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 288', 290, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the page', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48', 5, 'Fe::Page', 'yes') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 4  (0.4ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer on a hidden page', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 5 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (5, 2, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:48' WHERE `fe_pages`.`id` = 5  (0.7ms) COMMIT  (0.4ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.6ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.2ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (1.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.4ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.5ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.4ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (1.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (1.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 5 ORDER BY id=1 DESC, id=2 DESC Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 5 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 ORDER BY id=2 DESC Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 129', '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.969844' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 291) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 289', 291, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.973886' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 292) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 290', 292, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.977237' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 293) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 291', 293, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.980851' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 294) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 292', 294, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:48.984372' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 295) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 293', 295, '2023-09-11 16:47:48', '2023-09-11 16:47:48')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the enclosed element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:48', '2023-09-11 16:47:48', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.2ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:48', '2023-09-11 16:47:48') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:49' WHERE `fe_pages`.`id` = 4  (1.0ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the enclosing element', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49', 1) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:49', '2023-09-11 16:47:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:49' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Application Create (1.5ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.7ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'no', '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 4 LIMIT 1 Fe::Element Load (1.0ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 2) ORDER BY id=1 DESC, id=2 DESC, id=2 DESC Fe::QuestionSheet Exists (0.7ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.6ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (12.1ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 130', '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.221529' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 296) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 294', 296, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.225707' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 297) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 295', 297, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.228986' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 298) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 296', 298, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.232036' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 299) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 297', 299, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.235216' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 300) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 298', 300, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL1', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:49', '2023-09-11 16:47:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:49' WHERE `fe_pages`.`id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ChoiceField', 'yes-no', 'LVL2', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49', 1) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.0ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1  (0.1ms) BEGIN Fe::QuestionGrid Create (0.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::QuestionGrid', 'grid', 'LVL3 (GRID)', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49', 2) Fe::ChoiceField Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES (3, 'Fe::ChoiceField', 'yes-no', 'LVL4', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::TextField', 'short', 'EL (LVL5)', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4,5' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.2ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Application Load (0.3ms) SELECT `fe_applications`.* FROM `fe_applications` WHERE `fe_applications`.`id` = 1 LIMIT 1 Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, 'yes', '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.7ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'yes', '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 4, 'yes', '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 4 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 4 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.3ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'no' WHERE `fe_answers`.`id` = 2  (1.0ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::ChoiceField Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 3 ORDER BY position asc, id asc Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (12.1ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (8.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (8.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 131', '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.703211' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 301) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 299', 301, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.707539' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 302) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 300', 302, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.710722' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 303) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 301', 303, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.713880' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 304) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 302', 304, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.716836' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 305) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 303', 305, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.4ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49', 5, 'Fe::Page') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:49', '2023-09-11 16:47:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:49' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT Fe::ChoiceField Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) BEGIN Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 1  (0.4ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1)  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `number` = 2 WHERE `fe_pages`.`id` = 2  (0.4ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 2)  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `number` = 3 WHERE `fe_pages`.`id` = 3  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 3)  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 1 WHERE `fe_pages`.`id` = 4  (0.2ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 1) Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.766511' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 4) AND (`fe_pages`.`number` >= 1) AND (`fe_pages`.`number` < 304)  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `number` = 4 WHERE `fe_pages`.`id` = 5  (0.3ms) SELECT COUNT(*) FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` = 4) Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.773832' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 5) AND (`fe_pages`.`number` >= 4) AND (`fe_pages`.`number` < 305)  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (9.3ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (12.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 132', '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.917065' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 306) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 304', 306, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.921455' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 307) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 305', 307, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.925073' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 308) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 306', 308, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.928448' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 309) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 307', 309, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:49.931430' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 310) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 308', 310, '2023-09-11 16:47:49', '2023-09-11 16:47:49')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next pag', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:49', '2023-09-11 16:47:49', 5, 'Fe::Page') Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:49', '2023-09-11 16:47:49') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:49' WHERE `fe_pages`.`id` = 4  (0.9ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 5 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (12.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 133', '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.094213' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 311) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 309', 311, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.098400' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 312) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 310', 312, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.101579' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 313) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 311', 313, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.104770' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 314) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 312', 314, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.107980' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 315) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 313', 315, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES ('Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:50', '2023-09-11 16:47:50', 'Fe::Element') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:50', '2023-09-11 16:47:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:50' WHERE `fe_pages`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-09-11 16:47:50', '2023-09-11 16:47:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2023-09-11 16:47:50', '2023-09-11 16:47:50') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::ChoiceField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 2 WHERE `fe_elements`.`id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:50' WHERE `fe_pages`.`id` = 4  (0.6ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.4ms) TRUNCATE TABLE `fe_answers`  (7.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (8.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (6.8ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (13.0ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.9ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.5ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (9.2ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 134', '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.923912' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 316) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 314', 316, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.928320' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 317) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 315', 317, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.931873' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 318) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 316', 318, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.934897' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 319) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 317', 319, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:50.939543' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 320) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 318', 320, '2023-09-11 16:47:50', '2023-09-11 16:47:50')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionGrid Create (3.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 128', TRUE, '2023-09-11 16:47:50', '2023-09-11 16:47:50') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:50', '2023-09-11 16:47:50') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:50' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:50', '2023-09-11 16:47:50', 'Fe::Element') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (1.1ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-09-11 16:47:50', '2023-09-11 16:47:50') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (9.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.6ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 135', '2023-09-11 16:47:51', '2023-09-11 16:47:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:51.144537' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 321) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 319', 321, '2023-09-11 16:47:51', '2023-09-11 16:47:51')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:51.149027' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 322) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 320', 322, '2023-09-11 16:47:51', '2023-09-11 16:47:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:51.152602' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 323) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 321', 323, '2023-09-11 16:47:51', '2023-09-11 16:47:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:51.155831' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 324) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 322', 324, '2023-09-11 16:47:51', '2023-09-11 16:47:51')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:51.158996' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 325) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 323', 325, '2023-09-11 16:47:51', '2023-09-11 16:47:51')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 129', TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 4 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (4, 1, 1, '2023-09-11 16:47:51', '2023-09-11 16:47:51') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:51' WHERE `fe_pages`.`id` = 4  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_type`) VALUES (1, 'Fe::ChoiceField', 'yes-no', 'This is a test for a yes/no question that will hide the next element', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51', 'Fe::Element') Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'This is a test of a short answer that will be hidden by the previous elemenet', TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 4 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`choice_field_id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::ChoiceField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2  (1.2ms) COMMIT Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.5ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.9ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.6ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::ChoiceField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `content_translations`) VALUES ('Fe::ChoiceField', 'drop-down', 'Label Element 130', '1\r\n2', TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51', '---\nfr: \'\'\n') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.9ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (6.7ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 131', TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51', '---\nfr: \'\'\n', '---\nfr: \'\'\n', '---\nfr: \'\'\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (8.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `label_translations`, `tip_translations`, `content_translations`) VALUES ('Fe::TextField', 'short', 'Label Element 132', TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51', '---\nfr: fr label\n', '---\nfr: fr tip\n', '---\nfr: fr content\n') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (8.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 133', TRUE, TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51', TRUE) Fe::Page Load (2.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 134', TRUE, TRUE, '2023-09-11 16:47:51', '2023-09-11 16:47:51', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 135', TRUE, TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (12.3ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (45.8ms) TRUNCATE TABLE `fe_pages`  (12.6ms) TRUNCATE TABLE `fe_people`  (8.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:52', '2023-09-11 16:47:52')  (1.0ms) COMMIT  (0.3ms) BEGIN Fe::Person Create (0.9ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (4.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 136', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (2.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 137', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 138', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 136', '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:52.250262' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 326) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 324', 326, '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (3.6ms) COMMIT  (0.4ms) BEGIN Fe::PageElement Load (0.8ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.8ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.5ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionGrid Create (2.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 139', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (4.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 140', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 141', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 137', '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:52.461172' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 327) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 325', 327, '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 141', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 4, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 Fe::PageElement Load (0.2ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position DESC, `fe_page_elements`.`position` DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (7.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (10.6ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 142', TRUE, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.2ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 143', TRUE, 0, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::QuestionGrid Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 144', TRUE, 1, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.4ms) BEGIN Fe::QuestionSheet Create (2.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 138', '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:52.693301' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 328) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 326', 328, '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:52' WHERE `fe_pages`.`id` = 1  (1.3ms) COMMIT Fe::QuestionGrid Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.4ms) SELECT MAX(`fe_elements`.`position`) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1  (0.2ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `position`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 144', TRUE, 2, '2023-09-11 16:47:52', '2023-09-11 16:47:52') Fe::QuestionGrid Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.4ms) COMMIT Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position DESC, id DESC LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.5ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:52', '2023-09-11 16:47:52')  (0.8ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.9ms) TRUNCATE TABLE `fe_addresses`  (8.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (6.3ms) TRUNCATE TABLE `fe_people`  (7.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.2ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:53', '2023-09-11 16:47:53')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:53', '2023-09-11 16:47:53')  (0.8ms) COMMIT Fe::Person Load (0.3ms) SELECT `fe_people`.* FROM `fe_people` WHERE `fe_people`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 145', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 146', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 147', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 148', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.6ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 6  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (35.1ms) TRUNCATE TABLE `fe_addresses`  (10.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.7ms) TRUNCATE TABLE `fe_page_elements`  (8.7ms) TRUNCATE TABLE `fe_pages`  (8.0ms) TRUNCATE TABLE `fe_people`  (7.4ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 149', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 1, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 150', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 151', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 152', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (36.1ms) TRUNCATE TABLE `fe_addresses`  (11.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.6ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 153', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 154', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.7ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 155', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4) Fe::ChoiceField Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.2ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 156', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 7, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1  (0.2ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid conditional visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 2, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 9  (0.5ms) COMMIT Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 9  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (34.9ms) TRUNCATE TABLE `fe_addresses`  (10.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.2ms) TRUNCATE TABLE `fe_references`  (38.4ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionGrid Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 157', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (4.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the grid visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 1, 'Fe::Element', 'yes') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::ReferenceQuestion', 'staff', 'Label Element 158', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::QuestionGrid Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGrid', 'Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (1.6ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 3 AND `fe_references`.`status` = 'created'  (1.1ms) COMMIT  (0.3ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ChoiceField', 'yes-no', 'is the ref element inside this element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `choice_field_id`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 159', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4) Fe::ChoiceField Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::ChoiceField') AND `fe_elements`.`id` = 4 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::ReferenceSheet Update All (0.3ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 5 AND `fe_references`.`status` = 'created'  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::ChoiceField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next choice element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 4, 'Fe::Element', 'yes') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::ReferenceQuestion Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 160', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::ReferenceSheet Update All (0.2ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:53' WHERE `fe_references`.`question_id` = 7 AND `fe_references`.`status` = 'created'  (0.5ms) COMMIT  (0.2ms) BEGIN Fe::ChoiceField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `content`, `required`, `created_at`, `updated_at`, `conditional_id`, `conditional_type`, `conditional_answer`) VALUES ('Fe::ChoiceField', 'yes-no', 'Is the next ref element visible?', 'Choice One\r\nChoice Two\r\nChoice Three', TRUE, '2023-09-11 16:47:53', '2023-09-11 16:47:53', 7, 'Fe::Element', 'yes') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.7ms) COMMIT Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 7 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` ORDER BY updated_at desc, id desc LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`conditional_type` = 'Fe::Element' AND `fe_elements`.`conditional_id` = 8  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (38.1ms) TRUNCATE TABLE `fe_addresses`  (13.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.7ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::ReferenceQuestion Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::ReferenceQuestion', 'staff', 'Label Element 161', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::ReferenceSheet Update All (2.0ms) UPDATE `fe_references` SET `fe_references`.`question_sheet_id` = NULL, `fe_references`.`updated_at` = '2023-09-11 16:47:54' WHERE `fe_references`.`question_id` = 1 AND `fe_references`.`status` = 'created'  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 162', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 163', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (1.0ms) COMMIT Fe::Question Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::Question', 'Fe::ChoiceField', 'Fe::DateField', 'Fe::TextField', 'Fe::ReferenceQuestion', 'Fe::AttachmentField', 'Fe::StateChooser') AND `fe_elements`.`id` IN (2, 3)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.4ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (7.7ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 164', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (7.8ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.8ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `css_class`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 165', TRUE, 'a 1 2', '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.1ms) COMMIT  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.9ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (13.9ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (6.2ms) TRUNCATE TABLE `fe_pages`  (12.6ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (6.8ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::Application Create (1.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Person Create (1.0ms) INSERT INTO `fe_people` (`first_name`, `last_name`, `created_at`, `updated_at`) VALUES ('MyString', 'MyString', '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 166', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`, `conditional_answer`) VALUES ('Fe::TextField', 'short', 'Label Element 167', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54', 'test') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 168', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 3, `conditional_type` = 'Fe::Element' WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 139', '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:54.576284' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 329) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 327', 329, '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:54' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = NULL WHERE `fe_elements`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:54' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 3, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 3 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:54' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (0.4ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:54', '2023-09-11 16:47:54')  (1.1ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (2, 1, '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.8ms) COMMIT Fe::AnswerSheetQuestionSheet Load (0.4ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 LIMIT 1 Fe::AnswerSheetQuestionSheet Load (0.3ms) SELECT `fe_answer_sheet_question_sheets`.* FROM `fe_answer_sheet_question_sheets` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 ORDER BY `fe_answer_sheet_question_sheets`.`id` ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) COMMIT Fe::Answer Load (1.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2  (0.1ms) BEGIN Fe::Answer Create (0.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (2, 2, 'nomatch', '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Exists (0.4ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 2 AND `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 2 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 140', '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:54.786027' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 330) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 328', 330, '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 169', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:54' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 170', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.6ms) COMMIT Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (1.1ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.3ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 141', '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:54.967147' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 331) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 329', 331, '2023-09-11 16:47:54', '2023-09-11 16:47:54')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 171', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:54' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 172', TRUE, '2023-09-11 16:47:54', '2023-09-11 16:47:54') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.7ms) TRUNCATE TABLE `fe_pages`  (7.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 173', TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.2ms) COMMIT  (0.3ms) BEGIN Fe::QuestionSheet Create (1.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 142', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.6ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.156151' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 332) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 330', 332, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 143', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.165876' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 333) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 331', 333, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:55', '2023-09-11 16:47:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:55' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 16:47:55', '2023-09-11 16:47:55') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:55' WHERE `fe_pages`.`id` = 2  (0.9ms) COMMIT Fe::Page Update (0.7ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = NULL WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 174', TRUE, TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::TextField Create (2.7ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 175', TRUE, TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55', TRUE) Fe::Page Load (1.9ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 176', TRUE, TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.0ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.8ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 144', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.506272' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 334) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 332', 334, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.509337' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 335) Fe::Page Create (0.6ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 333', 335, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.512588' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 336) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 334', 336, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.516074' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 337) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 335', 337, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.519142' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 338) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 336', 338, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.1ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 145', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.528439' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 339) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 337', 339, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.531570' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 340) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 338', 340, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.534806' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 341) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 339', 341, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.538154' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 342) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 340', 342, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.541186' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 343) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 341', 343, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.3ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.5ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 16:47:55', '2023-09-11 16:47:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:55' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 16:47:55', '2023-09-11 16:47:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.4ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:55' WHERE `fe_pages`.`id` = 6  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 146', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.582089' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 344) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 342', 344, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 3 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (6.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 177', TRUE, TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55', TRUE) Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 178', TRUE, TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.8ms) COMMIT Fe::Answer Load (1.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.1ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.8ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 147', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.737990' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 345) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 343', 345, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.741441' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 346) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 344', 346, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.744675' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 347) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 345', 347, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.747811' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 348) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 346', 348, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.751041' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 349) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 347', 349, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.6ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 148', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.761391' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 350) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 348', 350, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.764442' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 351) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 349', 351, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.767559' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 352) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 350', 352, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.770816' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 353) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 351', 353, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.774029' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 354) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 352', 354, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 16:47:55', '2023-09-11 16:47:55') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.8ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:55' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 16:47:55', '2023-09-11 16:47:55') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.5ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:55' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Update (0.3ms) UPDATE `fe_answers` SET `value` = 'match' WHERE `fe_answers`.`id` = 1  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.5ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.6ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (7.2ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.5ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 179', TRUE, TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 180', TRUE, TRUE, '2023-09-11 16:47:55', '2023-09-11 16:47:55', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.7ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.9ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.2ms) BEGIN Fe::QuestionSheet Create (1.8ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 149', '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.988908' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 355) Fe::Page Create (0.4ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 353', 355, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.993642' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 356) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 354', 356, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:55.997304' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 357) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 355', 357, '2023-09-11 16:47:55', '2023-09-11 16:47:55')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.000420' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 358) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 356', 358, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.003766' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 359) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 357', 359, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.4ms) COMMIT  (0.2ms) BEGIN Fe::AnswerSheetQuestionSheet Create (1.3ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 150', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.013765' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 360) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 358', 360, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.017205' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 361) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 359', 361, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.020562' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 362) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 360', 362, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.023788' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 363) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 361', 363, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.027029' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 364) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 362', 364, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 16:47:56', '2023-09-11 16:47:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:56' WHERE `fe_pages`.`id` = 6  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 16:47:56', '2023-09-11 16:47:56') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.3ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:56' WHERE `fe_pages`.`id` = 6  (1.1ms) COMMIT Fe::QuestionSheet Load (0.6ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.6ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.5ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.5ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (12.3ms) TRUNCATE TABLE `fe_addresses`  (7.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.6ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (10.0ms) TRUNCATE TABLE `fe_elements`  (6.5ms) TRUNCATE TABLE `fe_email_templates`  (7.2ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (5.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::TextField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 181', TRUE, TRUE, '2023-09-11 16:47:56', '2023-09-11 16:47:56', TRUE) Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `is_confidential`, `created_at`, `updated_at`, `conditional_type`, `conditional_answer`, `share`) VALUES ('Fe::TextField', 'short', 'Label Element 182', TRUE, TRUE, '2023-09-11 16:47:56', '2023-09-11 16:47:56', 'Fe::Element', 'match', TRUE) Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT Fe::Answer Load (1.1ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1  (0.2ms) BEGIN Fe::Answer Create (0.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 2, 'nomatch', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.1ms) BEGIN Fe::QuestionSheet Create (0.9ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 151', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.230245' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 365) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 363', 365, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.233418' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 366) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 364', 366, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.236433' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 367) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 365', 367, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.239546' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 368) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 366', 368, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.242968' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 369) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 367', 369, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.9ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 152', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.252443' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 370) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 368', 370, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.255764' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 371) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 369', 371, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.259069' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 372) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 370', 372, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.262158' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 373) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 371', 373, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.265208' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 374) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 372', 374, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::AnswerSheetQuestionSheet Create (0.2ms) INSERT INTO `fe_answer_sheet_question_sheets` (`answer_sheet_id`, `question_sheet_id`, `created_at`, `updated_at`) VALUES (1, 2, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number LIMIT 1  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 2, 1, '2023-09-11 16:47:56', '2023-09-11 16:47:56') Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:56' WHERE `fe_pages`.`id` = 6  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 6 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (6, 1, 2, '2023-09-11 16:47:56', '2023-09-11 16:47:56') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 6 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::TextField Update (0.7ms) UPDATE `fe_elements` SET `conditional_id` = 1 WHERE `fe_elements`.`id` = 2 Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:56' WHERE `fe_pages`.`id` = 6  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::QuestionSheet Create (0.4ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 153', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.306019' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 375) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 373', 375, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.309316' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 376) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 374', 376, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.312636' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 377) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 375', 377, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.315817' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 378) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 376', 378, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:56.318731' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 379) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (3, 'Label Page 377', 379, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 2 LIMIT 1  (0.3ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 ORDER BY number Fe::Element Exists (0.3ms) SELECT 1 AS one FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) AND `fe_elements`.`conditional_type` = 'Fe::Page' AND `fe_elements`.`conditional_id` = 6 LIMIT 1 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 6 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 6 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1) ORDER BY id=2 DESC, id=1 DESC Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::QuestionSheet Exists (0.3ms) SELECT 1 AS one FROM `fe_question_sheets` INNER JOIN `fe_answer_sheet_question_sheets` ON `fe_question_sheets`.`id` = `fe_answer_sheet_question_sheets`.`question_sheet_id` WHERE `fe_answer_sheet_question_sheets`.`answer_sheet_id` = 1 AND `fe_question_sheets`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Answer Load (0.3ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 2 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (7.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.0ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (6.6ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.2ms) TRUNCATE TABLE `fe_conditions`  (11.4ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.9ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (6.9ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.8ms) TRUNCATE TABLE `fe_answers`  (9.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Processing by Fe::Admin::QuestionSheetsController#duplicate as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 154 - COPY', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.7ms) COMMIT Fe::Page Load (1.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 2.7ms)  (0.6ms) SELECT COUNT(*) FROM `fe_question_sheets` Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` ORDER BY `fe_question_sheets`.`id` DESC LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (12.3ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.7ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.4ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 155', TRUE, '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (0.6ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#unarchive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Fe::QuestionSheet Update (0.3ms) UPDATE `fe_question_sheets` SET `archived` = FALSE WHERE `fe_question_sheets`.`id` = 1  (0.8ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.5ms) Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.6ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.6ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.0ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 156', '2023-09-11 16:47:56', '2023-09-11 16:47:56')  (1.0ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#archive as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.5ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Fe::QuestionSheet Update (0.7ms) UPDATE `fe_question_sheets` SET `archived` = TRUE WHERE `fe_question_sheets`.`id` = 1  (0.6ms) COMMIT Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 2.0ms) Fe::QuestionSheet Load (0.4ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.3ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 157', '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `archived`, `created_at`, `updated_at`) VALUES ('Question Sheet 158', TRUE, '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.4ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#index as HTML Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin Fe::QuestionSheet Load (0.8ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = FALSE ORDER BY label Fe::QuestionSheet Load (0.2ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`archived` = TRUE ORDER BY label Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/index.html.erb within layouts/fe/fe_admin (4.6ms) Completed 200 OK in 15ms (Views: 7.7ms | ActiveRecord: 1.0ms)  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (30.1ms) TRUNCATE TABLE `fe_addresses`  (10.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (9.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.6ms) TRUNCATE TABLE `fe_people`  (6.2ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 159', '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.6ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (2.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:57.312262' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 380) Fe::Page Create (0.5ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 378', 380, '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.5ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:57.320224' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 381) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 379', 381, '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.3ms) COMMIT Processing by Fe::Admin::QuestionSheetsController#show as HTML Parameters: {"id"=>"1"} Fe::QuestionSheet Load (0.3ms) SELECT `fe_question_sheets`.* FROM `fe_question_sheets` WHERE `fe_question_sheets`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Rendering /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_nav_controls.html.erb (0.8ms) Rendered collection of /Users/andrew/Development/fe/app/views/fe/admin/panels/_page.html.erb [2 times] (1.1ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/panels/_pages_list.html.erb (10.7ms) Fe::Element Load (3.1ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_pages/_question_page.html.erb (5.0ms) Rendered /Users/andrew/Development/fe/app/views/fe/admin/question_sheets/show.html.erb within layouts/fe/fe_admin (30.0ms) Completed 200 OK in 44ms (Views: 34.1ms | ActiveRecord: 3.7ms)  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (20.4ms) TRUNCATE TABLE `fe_addresses`  (10.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.8ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (7.2ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.8ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (7.0ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.6ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.8ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (38.9ms) TRUNCATE TABLE `fe_addresses`  (10.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.9ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.7ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (7.2ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (8.2ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.7ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (35.4ms) TRUNCATE TABLE `fe_addresses`  (10.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (8.5ms) TRUNCATE TABLE `fe_page_elements`  (7.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (8.2ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.2ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.7ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) TRUNCATE TABLE `fe_addresses`  (10.0ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (6.7ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.1ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 16:47:57', '2023-09-11 16:47:57')  (0.7ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering text template Rendered text template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.7ms  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.3ms) TRUNCATE TABLE `fe_addresses`  (8.5ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.4ms) TRUNCATE TABLE `fe_applications`  (12.3ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.3ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 16:47:58', '2023-09-11 16:47:58')  (0.8ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.2ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (12.4ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (9.0ms) TRUNCATE TABLE `fe_pages`  (7.5ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::EmailTemplate Create (1.1ms) INSERT INTO `fe_email_templates` (`name`, `content`, `enabled`, `subject`, `created_at`, `updated_at`) VALUES ('Staff Payment Request', 'test', TRUE, 'Staff Payment Request Subject', '2023-09-11 16:47:58', '2023-09-11 16:47:58')  (0.9ms) COMMIT Fe::EmailTemplate Load (0.3ms) SELECT `fe_email_templates`.* FROM `fe_email_templates` WHERE `fe_email_templates`.`name` = 'Staff Payment Request' LIMIT 1 Rendering html template Rendered html template (0.0ms) Fe::Notifier#notification: processed outbound mail in 1.9ms  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (7.6ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.7ms) TRUNCATE TABLE `fe_applications`  (10.6ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.2ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (6.7ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (7.3ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.6ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (13.1ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (7.2ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.7ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (12.2ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.6ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (11.0ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.6ms) TRUNCATE TABLE `fe_addresses`  (8.7ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (6.7ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.3ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (8.2ms) TRUNCATE TABLE `fe_page_elements`  (7.9ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (8.5ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (6.7ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 160', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.027481' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 382) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 380', 382, '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 183', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (0.5ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 184', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 185', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.9ms) COMMIT  (0.3ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.5ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 186', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.6ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.5ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.7ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (9.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (6.9ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.7ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 161', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 162', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.233181' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 383) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (2, 'Label Page 381', 383, '2023-09-11 16:47:59', '2023-09-11 16:47:59', '')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.2ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 163', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.240079' WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 384) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`, `all_element_ids`) VALUES (3, 'Label Page 382', 384, '2023-09-11 16:47:59', '2023-09-11 16:47:59', '')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 187', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 383) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.261983' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 383) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 3 AND (`fe_pages`.`number` >= 384) AND (`fe_pages`.id != 2) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.265958' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 2) AND (`fe_pages`.`number` >= 384) Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 ORDER BY id=1 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.7ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.1ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (7.6ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (6.5ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (6.9ms) TRUNCATE TABLE `fe_users`  (29.3ms) TRUNCATE TABLE `phone_numbers`  (28.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Fe::QuestionSheet Create (1.5ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 164', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.9ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (1.1ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.446965' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 385) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 383', 385, '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 188', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (1.1ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.4ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.4ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 1  (0.9ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 189', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 190', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 3, 2, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.4ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 191', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.9ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,4,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (6.4ms) COMMIT Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1  (0.5ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.8ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 4, 3) ORDER BY id=1 DESC, id=2 DESC, id=4 DESC, id=3 DESC  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (12.2ms) TRUNCATE TABLE `fe_addresses`  (9.4ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.1ms) TRUNCATE TABLE `fe_answers`  (8.2ms) TRUNCATE TABLE `fe_applications`  (10.8ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.8ms) TRUNCATE TABLE `fe_page_elements`  (7.4ms) TRUNCATE TABLE `fe_pages`  (6.8ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.4ms) TRUNCATE TABLE `fe_users`  (7.5ms) TRUNCATE TABLE `phone_numbers`  (7.1ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.1ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 165', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::QuestionSheet Create (0.3ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 166', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.679717' WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 386) Fe::Page Create (0.2ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (2, 'Label Page 384', 386, '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 2 AND (`fe_pages`.`number` >= 386) AND (`fe_pages`.id != 1) ORDER BY `fe_pages`.`number` ASC LIMIT 1 Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.685641' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.id != 1) AND (`fe_pages`.`number` >= 386) Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `question_sheet_id` = 1 WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (2.1ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE (1 = 0)  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (7.7ms) TRUNCATE TABLE `fe_applications`  (11.2ms) TRUNCATE TABLE `fe_conditions`  (11.0ms) TRUNCATE TABLE `fe_elements`  (7.3ms) TRUNCATE TABLE `fe_email_templates`  (8.9ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (9.7ms) TRUNCATE TABLE `fe_references`  (7.2ms) TRUNCATE TABLE `fe_users`  (7.2ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.0ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 167', '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.821441' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 387) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 385', 387, '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 192', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (1.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.4ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::TextField', 'short', 'Label Element 193', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (1, 'Fe::Section', 'section', 'Label Element 194', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.2ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 2 LIMIT 1  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 195', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.6ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.7ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 1 ORDER BY position asc, id asc Fe::Page Update (0.9ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2,3,4' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 1  (1.0ms) COMMIT  (0.2ms) BEGIN Fe::Page Update All (0.3ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:47:59.892253' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 388) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 386', 388, '2023-09-11 16:47:59', '2023-09-11 16:47:59')  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::QuestionGrid Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::QuestionGrid', 'grid', 'Label Element 196', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 5, 1, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 2  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::TextField', 'short', 'Label Element 197', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 6 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 5 LIMIT 1  (0.6ms) COMMIT  (0.1ms) BEGIN Fe::Section Create (0.3ms) INSERT INTO `fe_elements` (`question_grid_id`, `kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES (5, 'Fe::Section', 'section', 'Label Element 198', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::QuestionGridWithTotal Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`kind` IN ('Fe::QuestionGridWithTotal') AND `fe_elements`.`id` = 5 LIMIT 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 7 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 5 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 6 LIMIT 1  (1.2ms) COMMIT  (0.4ms) BEGIN Fe::TextField Create (0.6ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 199', TRUE, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.6ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Page Load (0.5ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::PageElement Load (0.5ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 8, 2, '2023-09-11 16:47:59', '2023-09-11 16:47:59') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`question_grid_id` = 5 ORDER BY position asc, id asc Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '5,6,7,8' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 8 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 7 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:47:59' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY id=1 DESC, id=2 DESC, id=3 DESC, id=4 DESC, id=5 DESC, id=6 DESC, id=7 DESC, id=8 DESC  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.8ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.6ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.5ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (7.8ms) TRUNCATE TABLE `fe_email_templates`  (8.4ms) TRUNCATE TABLE `fe_page_elements`  (6.8ms) TRUNCATE TABLE `fe_pages`  (7.1ms) TRUNCATE TABLE `fe_people`  (6.7ms) TRUNCATE TABLE `fe_question_sheets`  (10.2ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.4ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::QuestionSheet Create (1.6ms) INSERT INTO `fe_question_sheets` (`label`, `created_at`, `updated_at`) VALUES ('Question Sheet 168', '2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Page Update All (1.4ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:48:00.095303' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 389) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 387', 389, '2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.8ms) COMMIT  (0.3ms) BEGIN Fe::TextField Create (2.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 200', TRUE, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (1.0ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:48:00' WHERE `fe_pages`.`id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.4ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 201', TRUE, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 1 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.3ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (1, 2, 2, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.6ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 1 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '1,2' WHERE `fe_pages`.`id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 2 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 1 LIMIT 1 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:48:00' WHERE `fe_pages`.`id` = 1  (0.6ms) COMMIT Fe::Page Update (0.5ms) UPDATE `fe_pages` SET `all_element_ids` = '2,1' WHERE `fe_pages`.`id` = 1  (0.1ms) BEGIN Fe::Page Update All (0.2ms) UPDATE `fe_pages` SET `number` = (`fe_pages`.`number` + 1), `updated_at` = '2023-09-11 16:48:00.135961' WHERE `fe_pages`.`question_sheet_id` = 1 AND (`fe_pages`.`number` >= 390) Fe::Page Create (0.3ms) INSERT INTO `fe_pages` (`question_sheet_id`, `label`, `number`, `created_at`, `updated_at`) VALUES (1, 'Label Page 388', 390, '2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 202', TRUE, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 3, 1, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Element Load (0.5ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 3 Fe::Page Update (0.2ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:48:00' WHERE `fe_pages`.`id` = 2  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::TextField Create (0.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `label`, `required`, `created_at`, `updated_at`) VALUES ('Fe::TextField', 'short', 'Label Element 203', TRUE, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::PageElement Load (0.3ms) SELECT `fe_page_elements`.* FROM `fe_page_elements` WHERE `fe_page_elements`.`page_id` = 2 AND (`fe_page_elements`.`position` IS NOT NULL) ORDER BY `fe_page_elements`.`position` DESC LIMIT 1 Fe::PageElement Create (0.2ms) INSERT INTO `fe_page_elements` (`page_id`, `element_id`, `position`, `created_at`, `updated_at`) VALUES (2, 4, 2, '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` INNER JOIN `fe_page_elements` ON `fe_elements`.`id` = `fe_page_elements`.`element_id` WHERE `fe_page_elements`.`page_id` = 2 ORDER BY fe_page_elements.position, `fe_page_elements`.`position` ASC Fe::Page Update (0.3ms) UPDATE `fe_pages` SET `all_element_ids` = '3,4' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 4 Fe::Element Load (0.3ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` = 3 LIMIT 1 Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `updated_at` = '2023-09-11 16:48:00' WHERE `fe_pages`.`id` = 2  (0.8ms) COMMIT Fe::Page Update (0.6ms) UPDATE `fe_pages` SET `all_element_ids` = '4,3' WHERE `fe_pages`.`id` = 2 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 1 LIMIT 1 Fe::Page Load (0.2ms) SELECT `fe_pages`.* FROM `fe_pages` WHERE `fe_pages`.`id` = 2 LIMIT 1  (0.2ms) SELECT `fe_pages`.`all_element_ids` FROM `fe_pages` WHERE `fe_pages`.`question_sheet_id` = 1 ORDER BY number Fe::Element Load (0.4ms) SELECT `fe_elements`.* FROM `fe_elements` WHERE `fe_elements`.`id` IN (2, 1, 4, 3) ORDER BY id=2 DESC, id=1 DESC, id=4 DESC, id=3 DESC  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (10.4ms) TRUNCATE TABLE `fe_addresses`  (8.8ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.5ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.5ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.1ms) TRUNCATE TABLE `fe_pages`  (7.0ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.3ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.9ms) TRUNCATE TABLE `phone_numbers`  (7.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.8ms) COMMIT  (0.2ms) BEGIN Fe::DateField Create (2.3ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (1.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.8ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '13/12/2013', '2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.0ms) TRUNCATE TABLE `fe_addresses`  (8.1ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (8.1ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (10.8ms) TRUNCATE TABLE `fe_elements`  (7.5ms) TRUNCATE TABLE `fe_email_templates`  (8.1ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (10.5ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (8.0ms) TRUNCATE TABLE `phone_numbers`  (7.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.7ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.0ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (2.2ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.3ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.5ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.2ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '2023-09-11 16:48:00 UTC', '2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.7ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '') Fe::Answer Load (0.2ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`id` = 1 LIMIT 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (8.5ms) TRUNCATE TABLE `fe_applications`  (11.0ms) TRUNCATE TABLE `fe_conditions`  (11.7ms) TRUNCATE TABLE `fe_elements`  (7.4ms) TRUNCATE TABLE `fe_email_templates`  (7.5ms) TRUNCATE TABLE `fe_page_elements`  (7.0ms) TRUNCATE TABLE `fe_pages`  (6.4ms) TRUNCATE TABLE `fe_people`  (8.5ms) TRUNCATE TABLE `fe_question_sheets`  (9.9ms) TRUNCATE TABLE `fe_references`  (7.0ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.5ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Fe::Application Create (1.1ms) INSERT INTO `fe_applications` (`created_at`, `updated_at`) VALUES ('2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.8ms) COMMIT  (0.1ms) BEGIN Fe::DateField Create (2.1ms) INSERT INTO `fe_elements` (`kind`, `style`, `created_at`, `updated_at`) VALUES ('Fe::DateField', 'date', '2023-09-11 16:48:00', '2023-09-11 16:48:00') Fe::Page Load (1.7ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1 Fe::Page Load (0.4ms) SELECT `fe_pages`.* FROM `fe_pages` INNER JOIN `fe_page_elements` ON `fe_pages`.`id` = `fe_page_elements`.`page_id` WHERE `fe_page_elements`.`element_id` = 1  (0.4ms) COMMIT  (0.1ms) BEGIN Fe::Answer Create (1.3ms) INSERT INTO `fe_answers` (`answer_sheet_id`, `question_id`, `value`, `created_at`, `updated_at`) VALUES (1, 1, '1/12/2013', '2023-09-11 16:48:00', '2023-09-11 16:48:00')  (0.6ms) COMMIT Fe::Answer Load (0.4ms) SELECT `fe_answers`.* FROM `fe_answers` WHERE `fe_answers`.`question_id` = 1 AND `fe_answers`.`answer_sheet_id` = 1 AND (value IS NOT NULL AND value != '')  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (8.2ms) TRUNCATE TABLE `fe_addresses`  (8.6ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.4ms) TRUNCATE TABLE `fe_answers`  (7.9ms) TRUNCATE TABLE `fe_applications`  (10.4ms) TRUNCATE TABLE `fe_conditions`  (11.2ms) TRUNCATE TABLE `fe_elements`  (6.9ms) TRUNCATE TABLE `fe_email_templates`  (8.0ms) TRUNCATE TABLE `fe_page_elements`  (6.5ms) TRUNCATE TABLE `fe_pages`  (7.3ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (9.0ms) TRUNCATE TABLE `fe_references`  (7.3ms) TRUNCATE TABLE `fe_users`  (7.1ms) TRUNCATE TABLE `phone_numbers`  (6.6ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) TRUNCATE TABLE `fe_addresses`  (8.2ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.0ms) TRUNCATE TABLE `fe_answers`  (8.0ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.1ms) TRUNCATE TABLE `fe_email_templates`  (7.9ms) TRUNCATE TABLE `fe_page_elements`  (6.4ms) TRUNCATE TABLE `fe_pages`  (6.9ms) TRUNCATE TABLE `fe_people`  (6.8ms) TRUNCATE TABLE `fe_question_sheets`  (9.4ms) TRUNCATE TABLE `fe_references`  (6.6ms) TRUNCATE TABLE `fe_users`  (7.7ms) TRUNCATE TABLE `phone_numbers`  (6.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (8.1ms) TRUNCATE TABLE `fe_addresses`  (8.3ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.2ms) TRUNCATE TABLE `fe_answers`  (7.8ms) TRUNCATE TABLE `fe_applications`  (11.1ms) TRUNCATE TABLE `fe_conditions`  (11.3ms) TRUNCATE TABLE `fe_elements`  (7.0ms) TRUNCATE TABLE `fe_email_templates`  (10.2ms) TRUNCATE TABLE `fe_page_elements`  (8.5ms) TRUNCATE TABLE `fe_pages`  (7.9ms) TRUNCATE TABLE `fe_people`  (6.9ms) TRUNCATE TABLE `fe_question_sheets`  (9.6ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.6ms) TRUNCATE TABLE `phone_numbers`  (6.3ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.4ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (8.9ms) TRUNCATE TABLE `fe_answers`  (8.3ms) TRUNCATE TABLE `fe_applications`  (10.7ms) TRUNCATE TABLE `fe_conditions`  (11.9ms) TRUNCATE TABLE `fe_elements`  (6.4ms) TRUNCATE TABLE `fe_email_templates`  (41.8ms) TRUNCATE TABLE `fe_page_elements`  (10.5ms) TRUNCATE TABLE `fe_pages`  (7.4ms) TRUNCATE TABLE `fe_people`  (7.0ms) TRUNCATE TABLE `fe_question_sheets`  (9.5ms) TRUNCATE TABLE `fe_references`  (7.1ms) TRUNCATE TABLE `fe_users`  (7.3ms) TRUNCATE TABLE `phone_numbers`  (6.8ms) TRUNCATE TABLE `users`  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (7.5ms) TRUNCATE TABLE `fe_addresses`  (7.9ms) TRUNCATE TABLE `fe_answer_sheet_question_sheets`  (9.3ms) TRUNCATE TABLE `fe_answers`  (35.2ms) TRUNCATE TABLE `fe_applications`  (13.0ms) TRUNCATE TABLE `fe_conditions`  (11.8ms) TRUNCATE TABLE `fe_elements`  (8.9ms) TRUNCATE TABLE `fe_email_templates`  (9.4ms) TRUNCATE TABLE `fe_page_elements`  (7.3ms) TRUNCATE TABLE `fe_pages`  (10.8ms) TRUNCATE TABLE `fe_people`  (7.1ms) TRUNCATE TABLE `fe_question_sheets`  (10.0ms) TRUNCATE TABLE `fe_references`  (7.7ms) TRUNCATE TABLE `fe_users`  (7.8ms) TRUNCATE TABLE `phone_numbers`  (7.4ms) TRUNCATE TABLE `users`  (0.1ms) SET FOREIGN_KEY_CHECKS = 1